TextSource class Null safety
A TextSource represents a text source that has been analyzed to enumerate its sentences and tokens.
Constructors
-
TextSource(SourceText source, List<
Sentence> sentences) -
Instantiates a TextSource from the
source.factory
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
-
sentences
→ List<
Sentence> -
The collection of sentences in the source.
read-only
- source → String
-
The source text for the document.
read-only
-
tokens
→ List<
Token> -
The collection of tokens in the TextSource.
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