WordFrequencyCounter class

Facilitates performing word_frequency on a stream of strings.

Constructors

WordFrequencyCounter(String? word)
word is the word to count ignorePunctuation facilitates checking words that include symbols.
WordFrequencyCounter.fromString(String? str, String? word)
Creates a counter and adds parameter string. word is the word to count

Properties

count int?
Count of word encountered thus far.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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