static String validateAmount(String value) { if (int.parse(value) > 0) { return 'Amount must be a positive number'; } else { return ''; } }