WordCounter class
Facilitates performing word_count on a stream of strings.
Constructors
- WordCounter()
- ignorePunctuation facilitates checking words that include symbols.
- WordCounter.fromString(String str)
- Creates a counter and adds parameter string.
Properties
Methods
-
add(
String str, {bool ignorePunctuation = false}) → int - Add another string to be processed, returns the counts. ignorePunctuation facilitates checking words that include symbols.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited