toNamed<T extends Object?> method
Pushes a new named route onto the navigator.
Implementation
Future<T?> toNamed<T extends Object?>(String routeName,
{Object? arguments}) =>
Navigator.of(this).pushNamed<T>(routeName, arguments: arguments);