Skip to main content

popAndPushScreen method

Future popAndPushScreen (String routeName, {dynamic arguments})

<p>This function pop the initial route and push the new route to the navigator.</p> <p>params:</p> <ul> <li><code>routeName</code></li> <li><code>arguments</code> : necessary data for the route</li> </ul>

Implementation

Future\<dynamic\> popAndPushScreen(String routeName, \{dynamic arguments\}) \{
navigatorKey.currentState!.pop();
return pushScreen(routeName, arguments: arguments);
\}