isNumeric function
Check if a String is numeric value
Implementation
bool isNumeric(dynamic s) {
try {
if (s is double) return true;
double.parse(s);
return true;
} catch (_) {}
return false;
}
Check if a String is numeric value
bool isNumeric(dynamic s) {
try {
if (s is double) return true;
double.parse(s);
return true;
} catch (_) {}
return false;
}