letterCount function

int letterCount(
  1. String original,
  2. bool keepWhitespace
)

Count characters with or without whitespace.

Implementation

int letterCount(String original, bool keepWhitespace) {
  return letters(original, keepWhitespace).length;
}