didReplace method

void didReplace({
  1. Route? newRoute,
  2. Route? oldRoute,
})

The Navigator replaced oldRoute with newRoute.

Implementation

void didReplace({ Route<dynamic>? newRoute, Route<dynamic>? oldRoute }) { }