popAndPushNamed<T, R> method

Future<T?> popAndPushNamed<T, R>(
  1. String route, {
  2. R? result,
  3. Object? arguments,
})

Forwards execution to Navigator.popAndPushNamed.

Implementation

Future<T?> popAndPushNamed<T, R>(String route,
        {R? result, Object? arguments}) async =>
    state?.popAndPushNamed(route, result: result, arguments: arguments);