load<T extends Object?, R extends Object?> static method

Future<T?> load<T extends Object?, R extends Object?>(
  1. BuildContext context,
  2. dynamic route, {
  3. String? name,
  4. Map<String, dynamic>? arguments,
  5. Flag flag = Flag.none,
  6. RoutePredicate? predicate,
  7. R? result,
  8. 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,
  );
}