pushReplacementScreen method
Future pushReplacementScreen (String routeName, {dynamic arguments})
This function push the route and replace the screen.
params:
routeName
arguments
: necessary data for the route
Implementation
Future<dynamic> pushReplacementScreen(String routeName, {dynamic arguments}) {
return navigatorKey.currentState!
.pushReplacementNamed(routeName, arguments: arguments);
}