single static method

Widget single({
  1. NavigatorControl? control,
  2. required WidgetBuilder builder,
  3. bool overrideNavigation = false,
  4. RouteBuilderFactory? route,
})

Creates new Navigator and all underling Widgets will be pushed to this stack. With overrideNavigation Widget will create WillPopScope and handles back button.

Single navigator. Typically used inside other page to show content progress.

NavigatorStack

Implementation

static Widget single({
  NavigatorControl? control,
  required WidgetBuilder builder,
  bool overrideNavigation = false,
  RouteBuilderFactory? route,
}) {
  control ??= NavigatorControl();

  return NavigatorStack._(
    key: ObjectKey(control.menu.key),
    control: control,
    initializer: WidgetInitializer.of(builder),
    overrideNavigation: overrideNavigation,
    route: route,
  );
}