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

SpellCheckProvider()

Properties

annotationsChanged Stream<String>
Stream that emits the nodeId whose 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 word to 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 nodeId with text plainText.
dispose() → void
Disposes the provider.
ignoreWord(String word) → void
Ignores word for 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