DefaultSpellCheckService class

The service used by default to fetch spell check results for text input.

Any widget may use this service to spell check text by calling fetchSpellCheckSuggestions(locale, text) with an instance of this class. This is currently only supported by Android and iOS.

See also:

Implemented types

Constructors

DefaultSpellCheckService()
Creates service to spell check text input by default via communication over the spell check MethodChannel.

Properties

hashCode int
The hash code for this object.
no setterinherited
lastSavedResults SpellCheckResults?
The last received results from the shell side.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spellCheckChannel MethodChannel
The channel used to communicate with the shell side to complete spell check requests.
getter/setter pair

Methods

fetchSpellCheckSuggestions(Locale locale, String text) Future<List<SuggestionSpan>?>
Facilitates a spell check request.
override
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

Static Methods

mergeResults(List<SuggestionSpan> oldResults, List<SuggestionSpan> newResults) List<SuggestionSpan>
Merges two lists of spell check SuggestionSpans.