isNumber function
Implementation
bool isNumber(dynamic s) {
if (s is num) {
return true;
}
if (s is String) {
return double.tryParse(s.trim()) != null;
}
return false;
}
bool isNumber(dynamic s) {
if (s is num) {
return true;
}
if (s is String) {
return double.tryParse(s.trim()) != null;
}
return false;
}