offAllNamed<T> function

Future<T?>? offAllNamed<T>(
  1. String newRouteName, {
  2. RoutePredicate? predicate,
  3. dynamic arguments,
  4. int? id,
  5. Map<String, String>? parameters,
})

进入下一个界面并取消之前的所有路由(在购物车、投票和测试中很有用)

Implementation

Future<T?>? offAllNamed<T>(
  String newRouteName, {
  RoutePredicate? predicate,
  dynamic arguments,
  int? id,
  Map<String, String>? parameters,
}) {
  return Get.offAllNamed<T>(newRouteName,
      predicate: predicate,
      arguments: arguments,
      id: id,
      parameters: parameters);
}