WordCountResult class

Result object containing both word count and word array.

Returned by wordsDetect to provide both pieces of information in a single function call.

Example:

WordCountResult result = wordsDetect('Hello World');
print('Found ${result.count} words: ${result.words}');
// Output: Found 2 words: [Hello, World]

Constructors

WordCountResult({required List<String> words, required int count})
Creates a new word count result.
const

Properties

count int
The total number of words found.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
words List<String>
The array of words found in the text.
final

Methods

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