backAndToNamed<T extends Object?, TO extends Object?> method

  1. @override
Future<T?> backAndToNamed<T extends Object?, TO extends Object?>(
  1. String routeName, {
  2. TO? result,
  3. Object? arguments,
  4. bool fullscreenDialog = false,
  5. bool maintainState = true,
})

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,
  );
}