backAndtoNamed<T, R> method

  1. @override
Future<R?> backAndtoNamed<T, R>(
  1. String page, {
  2. T? result,
  3. Object? arguments,
})
override

Implementation

@override
Future<R?> backAndtoNamed<T, R>(String page,
    {T? result, Object? arguments}) async {
  final args = _buildPageSettings(page, arguments);
  final route = _getRouteDecoder<R>(args);
  if (route == null) return null;
  _popWithResult<T>(result);
  return _push<R>(route);
}