Sentence class Null safety

A Sentence represents a text source not containing sentence ending punctuation such as periods, question-marks and exclamations, except where used in tokens, identifiers or other terms.

In addition to the source text, the Sentence object also enumerates its tokens.

Constructors

Sentence()

Properties

hashCode int
The hash code for this object.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
source String
The source text of the Sentence.
read-only
tokens List<Token>
All the tokens in the Sentence.
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
Compares only whether:
override

Static Methods

fromString(String sentence, TextAnalyzerConfiguration configuration, TokenFilter? tokenFilter, [Zone? zone]) Future<Sentence>
Factory function that returns a Future of Sentence from the sentence using the configuration.