offAllNamed<T> function
进入下一个界面并取消之前的所有路由(在购物车、投票和测试中很有用)
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);
}