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. bool? allowSnapshotting,
  4. Curve? animationCurve,
  5. int? animationTime,
  6. int? animationReserveTime,
  7. AnimationType? animationType,
  8. Map<String, dynamic> arguments = const {},
  9. Color? barrierColor,
  10. bool? barrierDismissible,
  11. String? barrierLabel,
  12. bool? fullscreenDialog,
  13. String? name,
  14. Flag? flag,
  15. bool? maintainState,
  16. bool? opaque,
  17. RoutePredicate? predicate,
  18. R? result,
})

Implementation

static Future<T?> load<T extends Object?, R extends Object?>(
  BuildContext context,
  dynamic route, {
  bool? allowSnapshotting,
  Curve? animationCurve,
  int? animationTime,
  int? animationReserveTime,
  AnimationType? animationType,
  Map<String, dynamic> arguments = const {},
  Color? barrierColor,
  bool? barrierDismissible,
  String? barrierLabel,
  bool? fullscreenDialog,
  String? name,
  Flag? flag,
  bool? maintainState,
  bool? opaque,
  RoutePredicate? predicate,
  R? result,
}) {
  return AppNavigator.of(context).push(
    route,
    allowSnapshotting: allowSnapshotting,
    animationCurve: animationCurve,
    animationTime: animationTime,
    animationReserveTime: animationReserveTime,
    animationType: animationType,
    arguments: arguments,
    barrierColor: barrierColor,
    barrierDismissible: barrierDismissible,
    barrierLabel: barrierLabel,
    fullscreenDialog: fullscreenDialog,
    name: name,
    flag: flag,
    maintainState: maintainState,
    opaque: opaque,
    predicate: predicate,
    result: result,
  );
}