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