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

Future<T?> pushReplacement<T extends Object?, TO extends Object?>(
  1. Route<T> newRoute, {
  2. TO? result,
})

Implementation

Future<T?> pushReplacement<T extends Object?, TO extends Object?>(
        Route<T> newRoute,
        {TO? result}) =>
    navigator.pushReplacement(newRoute, result: result);