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

Future<T?> pushReplacementNamed<T extends Object?, TO extends Object?>({
  1. required String routeName,
  2. Object? arguments,
  3. TO? result,
})

Implementation

Future<T?> pushReplacementNamed<T extends Object?, TO extends Object?>({
  required String routeName,
  Object? arguments,
  TO? result,
}) {
  return navigator.pushReplacementNamed<T, TO>(
    routeName,
    result: result,
    arguments: arguments,
  );
}