offAllNamed<T> method

  1. @override
Future<T?>? offAllNamed<T>(
  1. String newRouteName, {
  2. dynamic arguments,
  3. String? id,
  4. Map<String, String>? parameters,
})
override

Implementation

@override
Future<T?>? offAllNamed<T>(
  String newRouteName, {
  // bool Function(GetPage route)? predicate,
  dynamic arguments,
  String? id,
  Map<String, String>? parameters,
}) async {
  final args = _buildPageSettings(newRouteName, arguments);
  final route = _getRouteDecoder<T>(args);
  if (route == null) return null;

  while (_activePages.length > 1) {
    _activePages.removeLast();
  }

  return _replaceNamed(route);
}