SuggestionSpan class

A data structure representing a range of misspelled text and the suggested replacements for this range.

For example, one SuggestionSpan of the List<SuggestionSpan> suggestions of the SpellCheckResults corresponding to "Hello, wrold!" may be:

SuggestionSpan suggestionSpan =
  const SuggestionSpan(
    TextRange(start: 7, end: 12),
    <String>['word', 'world', 'old'],
);
Annotations

Constructors

SuggestionSpan(TextRange range, List<String> suggestions)
Creates a span representing a misspelled range of text and the replacements suggested by a spell checker.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
range TextRange
The misspelled range of text.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suggestions List<String>
The alternate suggestions for the misspelled range of 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.
override