amountValidate function

bool? amountValidate(
  1. double? walletBalance,
  2. double? amount
)

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;
}