checkLoanAmount function
Implementation
bool checkLoanAmount(
double? loanAmount,
double? accountBalance,
double? itemAmount,
) {
// return true if loanAmount + accountBalance is greater than itemAmount
if (loanAmount == null || accountBalance == null || itemAmount == null) {
return false;
}
return loanAmount + accountBalance > itemAmount;
}