pushNamed<T> method
Pushes a named route onto the navigator.
Implementation
Future<T?> pushNamed<T>(String routeName, {Object? arguments}) async {
final result = await _key.currentState?.pushNamed<T>(
routeName,
arguments: arguments,
);
return result;
}