offNamed method

  1. @override
Future<T?> offNamed(
  1. String page, {
  2. Object? arguments,
  3. String? id,
  4. Map<String, String>? parameters,
})
override

Navigates off a named page and returns a result of type T.

Implementation

@override
Future<T?> offNamed(
  String page, {
  Object? arguments,
  String? id,
  Map<String, String>? parameters,
}) async {
  final PageSettings args = _buildPageSettings(page, arguments);
  final RouteDecoder<T>? route = _getRouteDecoder(args);
  if (route == null) {
    return null;
  }
  _popWithResult();
  return _push(route);
}