pushNamed<T> method
Provides a shortcut to push a named route to the navigator.
This is equivalent to calling Navigator.of(context).pushNamed()
.
Implementation
Future<T?> pushNamed<T>(String routeName, {Object? arguments}) =>
navigator.pushNamed<T>(routeName, arguments: arguments);