Skip to main content

pushScreen method

Future pushScreen (String routeName, {dynamic arguments})

This function push the route to the navigator.

params:

  • routeName
  • arguments : necessary data for the route

Implementation

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