NavigationPane constructor
NavigationPane({
- Key? key,
- int? selected,
- ValueChanged<
int> ? onChanged, - NavigationPaneSize? size,
- Widget? header,
- List<
NavigationPaneItem> items = const [], - Widget? autoSuggestBox,
- Widget? autoSuggestBoxReplacement,
- PaneDisplayMode displayMode = PaneDisplayMode.auto,
- bool toggleable = true,
- NavigationPaneWidget? customPane,
- ScrollController? scrollController,
- ScrollBehavior? scrollBehavior,
- Widget? leading,
- Widget? indicator = const StickyNavigationIndicator(),
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',
);