isNumeric static method

bool isNumeric(
  1. String s
)

Implementation

static bool isNumeric(String s) {
  return int.tryParse(s) != null;
}