isNumeric function

bool isNumeric(
  1. String s
)

Check if string is a numeric type

Implementation

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