amountValidate function
Implementation
bool? amountValidate(
double? walletBalance,
double? amount,
) {
// return true if amount is greater than walletBalance
if (walletBalance == null || amount == null) {
return null;
}
return amount > walletBalance;
}