add method

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

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

Implementation

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