isNumeric static method

bool isNumeric(
  1. String s
)

Check if a String is numeric value

Implementation

static bool isNumeric(String s) {
  try {
    double.parse(s);
    return true;
  } catch (e) {
    Log().debug('$e');
  }
  return false;
}