Push the given route onto the navigator that most tightly encloses the given context, and then remove all the previous routes until the predicate returns true. The predicate may be applied to the same route more than once if Route.
Read moreWhat is pushReplacement in Flutter?
Replace the current route of the navigator that most tightly encloses the given context by pushing the given route and then disposing the previous route once the new route has finished animating in .
Read moreWhat is MaterialPageRoute?
MaterialPageRoute<T> class Null safety. A modal route that replaces the entire screen with a platform-adaptive transition . For Android, the entrance transition for the page slides the route upwards and fades it in. The exit transition is the same, but in reverse.
Read moreHow do you get the current route in Flutter?
How to get the Current Route Name in Flutter
Read moreHow do you navigate without context in Flutter?
How to navigate without context in Flutter?
Read moreWhat is initial route?
initialRoute. The name of the first route to show, if a Navigator is built .
Read moreHow do you create a route in Flutter?
Flutter – Named Routes
Read more