isDigit method

bool isDigit(
  1. String currentChar
)

Implementation

bool isDigit(String currentChar) {
  return double.tryParse(currentChar) != null;
}