to<T extends Object?> method

Future<T?>? to<T extends Object?>(
  1. Widget page(), {
  2. bool? opaque,
  3. Transition? transition,
  4. Curve? curve,
  5. Duration? duration,
  6. String? id,
  7. String? routeName,
  8. bool fullscreenDialog = false,
  9. Object? arguments,
  10. List<Binding> bindings = const [],
  11. bool preventDuplicates = true,
  12. bool? popGesture,
  13. bool showCupertinoParallax = true,
  14. double gestureWidth(
    1. BuildContext context
    )?,
  15. CustomTransition? customTransition,
  16. bool rebuildStack = true,
  17. PreventDuplicateHandlingMode preventDuplicateHandlingMode = PreventDuplicateHandlingMode.reorderRoutes,
})

Implementation

Future<T?>? to<T extends Object?>(
  Widget Function() page, {
  bool? opaque,
  Transition? transition,
  Curve? curve,
  Duration? duration,
  String? id,
  String? routeName,
  bool fullscreenDialog = false,
  Object? arguments,
  List<Binding> bindings = const [],
  bool preventDuplicates = true,
  bool? popGesture,
  bool showCupertinoParallax = true,
  double Function(BuildContext context)? gestureWidth,
  CustomTransition? customTransition,
  bool rebuildStack = true,
  PreventDuplicateHandlingMode preventDuplicateHandlingMode =
      PreventDuplicateHandlingMode.reorderRoutes,
}) {
  return _delegate?.to<T>(
    page,
    opaque: opaque,
    transition: transition,
    curve: curve,
    duration: duration,
    id: id,
    routeName: routeName,
    fullscreenDialog: fullscreenDialog,
    arguments: arguments,
    bindings: bindings,
    preventDuplicates: preventDuplicates,
    popGesture: popGesture,
    showCupertinoParallax: showCupertinoParallax,
    gestureWidth: gestureWidth,
    customTransition: customTransition,
    rebuildStack: rebuildStack,
    preventDuplicateHandlingMode: preventDuplicateHandlingMode,
  );
}