SpellAnnotation class

An annotation representing a single spell-check error in the document. It maps to a span of text within a specific fragment.

Constructors

SpellAnnotation({required String nodeId, required int fragmentIndex, required int startOffset, required int endOffset, required List<String> suggestions, required String misspelledWord})
const

Properties

endOffset int
final
fragmentIndex int
final
hashCode int
The hash code for this object.
no setterinherited
misspelledWord String
final
nodeId String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startOffset int
final
suggestions List<String>
final

Methods

covers(String id, int offset) bool
Returns true if this annotation covers the given global offset in the fragment identified by nodeId.
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