NavigationPane constructor

NavigationPane({
  1. Key? key,
  2. int? selected,
  3. ValueChanged<int>? onChanged,
  4. Widget? header,
  5. List<NavigationPaneItem> items = const [],
  6. List<NavigationPaneItem> footerItems = const [],
  7. Widget? autoSuggestBox,
  8. Widget? autoSuggestBoxReplacement,
  9. PaneDisplayMode displayMode = PaneDisplayMode.auto,
  10. Widget? menuButton,
  11. ScrollController? scrollController,
  12. NavigationIndicatorBuilder indicatorBuilder = defaultNavigationIndicator,
})

Creates a navigation pane.

If selected is non-null, selected must be greater or equal to 0

Implementation

NavigationPane({
  this.key,
  this.selected,
  this.onChanged,
  this.header,
  this.items = const [],
  this.footerItems = const [],
  this.autoSuggestBox,
  this.autoSuggestBoxReplacement,
  this.displayMode = PaneDisplayMode.auto,
  this.menuButton,
  this.scrollController,
  this.indicatorBuilder = defaultNavigationIndicator,
}) : assert(selected == null || selected >= 0);