You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Formatting is great, yet when I go to validate and make sure the number is int I get the error message Invalid radix-10 number (at character 1)
I am calling if (int.parse(value) >to validate the value, so it looks like parse is not liking the value
Here is my validator
validator: (value) {
if (value.isEmpty) {
return 'Please enter an amount.';
}
if (int.parse(value) >
20) {
return 'Please enter a lower amount. The max you can request is ' +
20)
.toString();
}
return null;
},
The text was updated successfully, but these errors were encountered:
validator: (value) {
if (value.isEmpty) {
return 'Please enter an amount.';
}
if (int.parse(value) > 20) {
return 'Please enter a lower amount. The max you can request is 20 ';
}
Just testing this out.
Formatting is great, yet when I go to validate and make sure the number is int I get the error message
Invalid radix-10 number (at character 1)
I am calling
if (int.parse(value) >
to validate the value, so it looks like parse is not liking the valueHere is my validator
The text was updated successfully, but these errors were encountered: