to<T> function

Future<T?>? to<T>(
  1. dynamic page, {
  2. bool? opaque,
  3. Transition? transition,
  4. Curve? curve,
  5. Duration? duration,
  6. int? id,
  7. String? routeName,
  8. bool fullscreenDialog = false,
  9. dynamic arguments,
  10. Bindings? binding,
  11. bool preventDuplicates = true,
  12. bool? popGesture,
  13. double gestureWidth(
    1. BuildContext context
    )?,
})

Navigation.push()** shortcut.

Implementation

Future<T?>? to<T>(
  dynamic page, {
  bool? opaque,
  Transition? transition,
  Curve? curve,
  Duration? duration,
  int? id,
  String? routeName,
  bool fullscreenDialog = false,
  dynamic arguments,
  Bindings? binding,
  bool preventDuplicates = true,
  bool? popGesture,
  double Function(BuildContext context)? gestureWidth,
}) {
  return Get.to(
    page,
    opaque: opaque,
    transition: transition,
    curve: curve,
    duration: duration,
    id: id,
    routeName: routeName,
    fullscreenDialog: fullscreenDialog,
    arguments: arguments,
    binding: binding,
    preventDuplicates: preventDuplicates,
    popGesture: popGesture,
    gestureWidth: gestureWidth,
  );
}