isNumeric static method

bool isNumeric(
  1. String? s
)

string is numeric or not

Implementation

static bool isNumeric(String? s) {
  if (s == null) {
    return false;
  }
  return double.tryParse(s) != null;
}