show static method
dynamic
show({ - bool? barrierDismissible,
- required String cryptoPrice,
- required String usdPrice,
- required String icon,
- required String currency,
- required String wallet,
- String? network,
- required String type,
- required String amountType,
- required int timeLimit,
- void onTap()?,
- void onChangeMethod()?,
})
Implementation
static show({
bool? barrierDismissible,
required String cryptoPrice,
required String usdPrice,
required String icon,
required String currency,
required String wallet,
String? network,
required String type,
required String amountType,
required int timeLimit,
void Function()? onTap,
void Function()? onChangeMethod,
}) async {
return await callDependingOnScreen(
doMobile: () async {
return await openBottomSheet(
CryptoPaymentDialog(
isDialog: false,
cryptoPrice: cryptoPrice,
usdPrice: usdPrice,
icon: icon,
currency: currency,
wallet: wallet,
network: network,
type: type,
amountType: amountType,
timeLimit: timeLimit,
onTap: onTap,
onChangeMethod: onChangeMethod,
),
dismissible: barrierDismissible,
);
},
doWeb: () async {
return await openDialog(
barrierDismissible: barrierDismissible ?? true,
CryptoPaymentDialog(
isDialog: true,
cryptoPrice: cryptoPrice,
usdPrice: usdPrice,
icon: icon,
currency: currency,
wallet: wallet,
network: network,
type: type,
amountType: amountType,
timeLimit: timeLimit,
onTap: onTap,
onChangeMethod: onChangeMethod,
),
);
},
);
}