push method
Future
push(
- Widget screen, {
- RouteSettings? settings,
- bool maintainState = true,
- bool fullscreenDialog = false,
performs a simple Navigator.push action with given route
Implementation
Future<dynamic> push(
Widget screen, {
RouteSettings? settings,
bool maintainState = true,
bool fullscreenDialog = false,
bool rootNavigator = false,
}) async =>
await Navigator.of(
this,
rootNavigator: rootNavigator,
).push(MaterialPageRoute(
builder: (_) => screen,
settings: settings,
maintainState: maintainState,
fullscreenDialog: fullscreenDialog,
));