pushReplacement<T, TO> static method

Future<T?> pushReplacement<T, TO>(
  1. BuildContext context,
  2. String routeName, {
  3. Object? arguments,
  4. TO? result,
})

Push replacement with the default platform-aware transition.

Implementation

static Future<T?> pushReplacement<T, TO>(
  BuildContext context,
  String routeName, {
  Object? arguments,
  TO? result,
}) => pushReplacementNamed<T, TO>(
  context,
  routeName,
  arguments: arguments,
  result: result,
  transitionType: _defaultTransition,
);