flutterPushAndRemoveUntilRoot method

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

Implementation

Future<dynamic> flutterPushAndRemoveUntilRoot({Map<String, dynamic>? arguments}) async {
  // Map<String, dynamic> arg = {};
  // if (arguments != null) {
  //   arg.addAll(arguments);
  // }
  String? routeName = arguments?["routeName"];
  if (routeName != null) {
    return await _flutterNavigator.pushNamedAndRemoveUntilRoot(routeName);
  } else {
    return null;
  }
}