push<T> function
Future<T?>
push<T>({
- required BuildContext context,
- required Widget builder(
- BuildContext context
- String? title,
- RouteSettings? settings,
- bool maintainState = true,
- bool fullscreenDialog = false,
- bool allowSnapshotting = true,
Pushes a JadePageRoute that shows the page built by builder, like Navigator.push.
Implementation
Future<T?> push<T>({
required BuildContext context,
required Widget Function(BuildContext context) builder,
String? title,
RouteSettings? settings,
bool maintainState = true,
bool fullscreenDialog = false,
bool allowSnapshotting = true,
bool rootNavigator = false,
}) {
return Navigator.of(context, rootNavigator: rootNavigator).push<T>(
JadePageRoute<T>(
builder: builder,
title: title,
settings: settings,
maintainState: maintainState,
fullscreenDialog: fullscreenDialog,
allowSnapshotting: allowSnapshotting,
),
);
}