show static method
dynamic
show({ - required double refundAmount,
- required double cancellationFee,
- required void onConfirm(),
- 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,
),
);
},
);
}