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