show static method

dynamic show({
  1. required double refundAmount,
  2. required double cancellationFee,
  3. required void onConfirm(),
  4. bool? barrierDismissible,
})

Implementation

static show({
  required double refundAmount,
  required double cancellationFee,
  required void Function() onConfirm,
  bool? barrierDismissible,
}) async {
  return await callDependingOnScreen(
    doMobile: () async {
      await openBottomSheet(
        CancelBookingDialog(
          refundAmount: refundAmount,
          cancellationFee: cancellationFee,
          onConfirm: onConfirm,
          isDialog: false,
        ),
        dismissible: barrierDismissible,
      );
    },
    doWeb: () async {
      await openDialog(
        barrierDismissible: barrierDismissible ?? true,
        CancelBookingDialog(
          refundAmount: refundAmount,
          cancellationFee: cancellationFee,
          onConfirm: onConfirm,
          isDialog: true,
        ),
      );
    },
  );
}