popAndPushNamed<T extends Object?, TO extends Object?> method
Pop the current route off the navigator and push a named route in its place.
Implementation
@optionalTypeArgs
Future<T?> popAndPushNamed<T extends Object?, TO extends Object?>(
String routeName,
{TO? result,
Object? arguments}) =>
appState!.popAndPushNamed<T, TO>(routeName,
result: result, arguments: arguments);