call<T> method
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}) {
assert(navigationType != NavigationType.pushAndRemoveUntil ||
removeUntilPredicate != null);
_checkAndThrowRouteNotFound(name, args, navigationType);
return navigate<T>(name,
navigationType: navigationType,
result: result,
removeUntilPredicate: removeUntilPredicate,
args: args,
pageTransitionType: pageTransitionType);
}