SpellCheckProvider class abstract
Abstract interface that a spell-check plugin must implement.
The FluentDocument holds an optional instance of this provider. Widgets and render objects call the provider when a spell-check feature is available, and gracefully degrade when it is null.
Constructors
Properties
-
annotationsChanged
→ Stream<
String> -
Stream that emits the
nodeIdwhose annotations have changed.no setter - enabled ↔ bool
-
Whether spell checking is globally enabled.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addToDictionary(
String word) → Future< void> -
Adds
wordto the runtime dictionary. -
annotationsForNode(
String nodeId) → List< SpellAnnotation> -
Returns the current annotations for
nodeId. -
cancelCheck(
String nodeId) → void -
Cancels any pending check for
nodeId. -
checkParagraph(
String nodeId, String plainText) → void -
Requests a spell check for
nodeIdwith textplainText. -
dispose(
) → void - Disposes the provider.
-
ignoreWord(
String word) → void -
Ignores
wordfor the current session. -
initialize(
String languageCode) → Future< void> - Initializes the provider with the given language code.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDocumentMutation(
String nodeId, int fromOffset, int delta) → void - Shifts existing annotations after a document mutation.
-
reloadLanguage(
String languageCode) → Future< void> - Reloads the provider with a new language code.
-
requestSuggestions(
String word) → Future< List< String> > -
Requests on-demand suggestions for
word. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited