pushReplacement<T extends Object?, TO extends Object?> method

Future<T?> pushReplacement<T extends Object?, TO extends Object?>({
  1. bool maintainState = true,
  2. bool fullscreenDialog = false,
  3. RoutePushStyle pushStyle = RoutePushStyle.material,
  4. RouteSettings? settings,
  5. 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);