NavigationView constructor
const
NavigationView({
- Key? key,
- NavigationAppBar? appBar,
- NavigationPane? pane,
- Widget? content,
- Clip clipBehavior = Clip.antiAlias,
- ShapeBorder? contentShape,
- VoidCallback? onOpenSearch,
- AnimatedSwitcherTransitionBuilder? transitionBuilder,
- NavigationContentBuilder? paneBodyBuilder,
- ValueChanged<
PaneDisplayMode> ? onDisplayModeChanged,
Creates a navigation view.
Implementation
const NavigationView({
super.key,
this.appBar,
this.pane,
this.content,
this.clipBehavior = Clip.antiAlias,
this.contentShape,
this.onOpenSearch,
this.transitionBuilder,
this.paneBodyBuilder,
this.onDisplayModeChanged,
}) : assert(
(pane != null && content == null) ||
(pane == null && content != null),
'Either pane or content must be provided',
);