NavigationView constructor

const NavigationView({
  1. Key? key,
  2. NavigationAppBar? appBar,
  3. NavigationPane? pane,
  4. Widget? content,
  5. Clip clipBehavior = Clip.antiAlias,
  6. ShapeBorder? contentShape,
  7. VoidCallback? onOpenSearch,
  8. AnimatedSwitcherTransitionBuilder? transitionBuilder,
  9. NavigationContentBuilder? paneBodyBuilder,
  10. 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',
      );