dart check if string is numeric code example
Example: flutter check if string is number
bool isNumeric(String s) {
if (s == null) {
return false;
}
return double.tryParse(s) != null;
}
bool isNumeric(String s) {
if (s == null) {
return false;
}
return double.tryParse(s) != null;
}