to<T> abstract method

Future<T?> to<T>(
  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. dynamic arguments,
  10. List<BindingsInterface> bindings = const [],
  11. bool preventDuplicates = true,
  12. bool? popGesture,
  13. bool showCupertinoParallax = true,
  14. double gestureWidth(
    1. BuildContext context
    )?,
})

Navigates to the specified page with optional configurations.

Parameters:

  • opaque: Whether the page is opaque.
  • transition: The transition type to use.
  • curve: The curve for the transition.
  • duration: The duration of the transition.
  • id: A unique identifier for the navigation.
  • routeName: The name of the route.
  • fullscreenDialog: Whether the page is displayed as a fullscreen dialog.
  • arguments: Additional arguments to pass to the page.
  • bindings: List of bindings to initialize with the page.
  • preventDuplicates: Prevents duplicate navigation to the same page.
  • popGesture: Enables or disables the back gesture.
  • showCupertinoParallax: Whether to show a parallax effect on iOS.
  • gestureWidth: Customizes the width of the back gesture area.

Implementation

Future<T?> to<T>(
  Widget Function() page, {
  bool? opaque,
  Transition? transition,
  Curve? curve,
  Duration? duration,
  String? id,
  String? routeName,
  bool fullscreenDialog = false,
  dynamic arguments,
  List<BindingsInterface> bindings = const [],
  bool preventDuplicates = true,
  bool? popGesture,
  bool showCupertinoParallax = true,
  double Function(BuildContext context)? gestureWidth,
});