isLetter function

bool isLetter(
  1. String character
)

Checks whether the given character is a letter.

Implementation

bool isLetter(final String character) {
  return character.toLowerCase() != character.toUpperCase();
}