flutterPushAndRemoveUntil method
Implementation
Future<dynamic> flutterPushAndRemoveUntil({Map<String, dynamic>? arguments}) async {
String? routeName = arguments?["routeName"];
String? untilRouteName = arguments?["untilRouteName"];
if (routeName != null) {
if (untilRouteName != null) {
return await _flutterNavigator.pushNamedAndRemoveUntil(routeName, untilRouteName);
} else {
return await _flutterNavigator.pushNamed(routeName);
}
} else {
return null;
}
}