isDigit method

bool isDigit(
  1. String char
)

Implementation

bool isDigit(String char) {
  return int.tryParse(char) != null;
}