isNumeric function

bool isNumeric(
  1. String? s
)

Implementation

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