to<T> abstract method
Future<T?>
to<T>(
- Widget 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 gestureWidth(
- 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,
});