pushReplacement<T, R> method

Future<T?> pushReplacement<T, R>(
  1. Route<T> route, {
  2. R? result,
})

Forwards execution to Navigator.pushReplacement.

Implementation

Future<T?> pushReplacement<T, R>(Route<T> route, {R? result}) async =>
    state?.pushReplacement(route, result: result);