load<T extends Object?, R extends Object?> static method
Future<T?>
load<T extends Object?, R extends Object?>(
- BuildContext context,
- dynamic route, {
- String? name,
- Map<
String, dynamic> ? arguments, - Flag flag = Flag.none,
- RoutePredicate? predicate,
- R? result,
- AnimType type = AnimType.slideLeft,
Implementation
static Future<T?> load<T extends Object?, R extends Object?>(
BuildContext context,
dynamic route, {
String? name,
Map<String, dynamic>? arguments,
Flag flag = Flag.none,
RoutePredicate? predicate,
R? result,
AnimType type = AnimType.slideLeft,
}) {
return AppNavigator.of(context).push(
route,
name: name,
arguments: arguments,
flag: flag,
predicate: predicate,
result: result,
type: type,
);
}