push<T extends Object?, TO extends Object?> method
Future<T?>
push<T extends Object?, TO extends Object?>({
- bool maintainState = true,
- bool fullscreenDialog = false,
- RoutePushStyle pushStyle = RoutePushStyle.material,
- RouteSettings? settings,
- bool replacement = false,
- TO? result,
Implementation
Future<T?> push<T extends Object?, TO extends Object?>(
{bool maintainState = true,
bool fullscreenDialog = false,
RoutePushStyle pushStyle = RoutePushStyle.material,
RouteSettings? settings,
bool replacement = false,
TO? result}) {
if (replacement) {
return pushReplacement(
settings: settings,
maintainState: maintainState,
fullscreenDialog: fullscreenDialog,
pushStyle: pushStyle,
result: result);
} else {
return GlobalOptions().globalNavigatorKey.currentState!.push(
buildPageRoute(
maintainState: maintainState,
fullscreenDialog: fullscreenDialog,
settings: settings,
pushStyle: pushStyle));
}
}