pushReplacement<T> static method

Future<T?> pushReplacement<T>(
  1. BuildContext context,
  2. Route route, [
  3. Object? result
])

Replaces the current route on the navigator nearest to context.

Implementation

static Future<T?> pushReplacement<T>(
  BuildContext context,
  Route route, [
  Object? result,
]) {
  return of(context).pushReplacement<T>(route, result);
}