backAndToNamed<T extends Object?, TO extends Object?> method
Navigate back than to the page with the given named route
Equivalent to: NavigatorState.popAndPushNamed
Implementation
@override
Future<T?> backAndToNamed<T extends Object?, TO extends Object?>(
String routeName,
{TO? result,
Object? arguments,
bool fullscreenDialog = false,
bool maintainState = true}) {
return _navigationBuilder.backAndToNamed<T, TO>(
routeName,
result: result,
arguments: arguments,
fullscreenDialog: fullscreenDialog,
maintainState: maintainState,
);
}