flutterPopUntil method

Future flutterPopUntil({
  1. Map<String, dynamic>? arguments,
})

Implementation

Future<dynamic> flutterPopUntil({Map<String, dynamic>? arguments}) async {
  String? routeName = arguments?["routeName"];
  if (routeName != null) {
    bool isFarthest = false;
    if (arguments?['isFarthest'] != null && arguments?['isFarthest'] is bool) {
      isFarthest = arguments!['isFarthest'];
    }
    return await _flutterNavigator.popUntil(routeName, isFarthest: isFarthest);
  } else {
    return await _flutterNavigator.pop();
  }
}