call<T> method
Future<T>
call<T>(
- String name, {
- BaseArguments? args,
- dynamic result,
- bool removeUntilPredicate(
- Route route
- Map<
String, dynamic> ? params, - PageTransitionType? pageTransitionType,
- PageTransitionSettings? pageTransitionSettings,
Makes this a callable class. Delegates to navigate.
Implementation
Future<T> call<T>(String name,
{BaseArguments? args,
NavigationType navigationType = NavigationType.push,
dynamic result,
bool Function(Route<dynamic> route)? removeUntilPredicate,
Map<String, dynamic>? params,
PageTransitionType? pageTransitionType,
PageTransitionSettings? pageTransitionSettings}) async {
assert(navigationType != NavigationType.pushAndRemoveUntil ||
removeUntilPredicate != null);
_checkAndThrowRouteNotFound(name, args, navigationType);
return await navigate<T>(name,
navigationType: navigationType,
result: result,
removeUntilPredicate: removeUntilPredicate,
args: args,
pageTransitionType: pageTransitionType,
pageTransitionSettings: pageTransitionSettings);
}