StatisticsCounter class

Facilitates collecting statistics on a stream of strings.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stats StringStatistics?
getter/setter pair

Methods

add(String? str, {bool? ignorePunctuation = false, bool? end = false, bool? filterNonChars = true}) StringStatistics?
Add another string to be processed, returns the counts collection. filterNonChars removes non-chars from count. end indicates final word to flush buffers and finalize count. 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