openBottomSheet<T> static method

RxGoController<T?> openBottomSheet<T>(
  1. Widget bottomSheet, {
  2. dynamic arguments,
  3. String? name,
  4. RxGoController<T>? controller,
  5. bool canClose = false,
  6. bool fullscreen = false,
  7. bool showControl = true,
  8. dynamic onRouteChange(
    1. Uri? uri
    )?,
  9. Color? backgroundColor,
})

Implementation

static RxGoController<T?> openBottomSheet<T>(
  Widget bottomSheet, {
  dynamic arguments,
  String? name,
  RxGoController<T>? controller,
  bool canClose = false,
  bool fullscreen = false,
  bool showControl = true,
  dynamic Function(Uri? uri)? onRouteChange,
  Color? backgroundColor,
}) {
  controller ??= RxGoController<T>(name: name);
  controller._future = Get.bottomSheet<T>(
    bottomSheet,
    backgroundColor: backgroundColor ?? Colors.white,
    barrierColor: Colors.black12,
    settings: RouteSettings(
      name: controller._name,
      arguments: arguments,
    ),
    ignoreSafeArea: true,
    isScrollControlled: true,
  );
  return controller;
}