fetchSpellCheckSuggestions abstract method

Future<List<SuggestionSpan>?> fetchSpellCheckSuggestions(
  1. Locale locale,
  2. String text
)

Facilitates a spell check request.

Returns a Future that resolves with a List of SuggestionSpans for all misspelled words in the given String for the given Locale.

A return value that resolves to null indicates that fetching the spell check suggestions was unsuccessful. If fetching the suggestions succeeded but none were found, the Future should resolve to an empty list.

Implementation

Future<List<SuggestionSpan>?> fetchSpellCheckSuggestions(
  Locale locale, String text
);