NavigationPane constructor

NavigationPane({
  1. Key? key,
  2. int? selected,
  3. ValueChanged<int>? onChanged,
  4. NavigationPaneSize? size,
  5. Widget? header,
  6. List<NavigationPaneItem> items = const [],
  7. List<NavigationPaneItem> footerItems = const [],
  8. Widget? autoSuggestBox,
  9. Widget? autoSuggestBoxReplacement,
  10. PaneDisplayMode displayMode = PaneDisplayMode.auto,
  11. bool toggleable = true,
  12. NavigationPaneWidget? customPane,
  13. Widget? menuButton,
  14. ScrollController? scrollController,
  15. ScrollBehavior? scrollBehavior,
  16. Widget? leading,
  17. Widget? indicator = const StickyNavigationIndicator(),
})

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.size,
  this.header,
  this.items = const [],
  this.footerItems = const [],
  this.autoSuggestBox,
  this.autoSuggestBoxReplacement,
  this.displayMode = PaneDisplayMode.auto,
  this.toggleable = true,
  this.customPane,
  this.menuButton,
  this.scrollController,
  this.scrollBehavior,
  this.leading,
  this.indicator = const StickyNavigationIndicator(),
}) : assert(
        selected == null || !selected.isNegative,
        'The selected index must not be negative',
      );