Returns true if the character is a digit.
true
bool isDigit(String char) => RegExp(r'^\d+$').hasMatch(char);