add method

int add(
  1. String str, {
  2. bool filterNonChars = true,
})

Add another string to be processed, returns count. filterNonChars removes non-chars from count.

Implementation

int add(String str, {bool filterNonChars = true}) {
  _count += charCount(str, filterNonChars: filterNonChars);
  return _count;
}