SuggestionSpan constructor

const SuggestionSpan(
  1. TextRange range,
  2. List<String> suggestions
)

Creates a span representing a misspelled range of text and the replacements suggested by a spell checker.

The range and replacement suggestions must all not be null.

Implementation

const SuggestionSpan(this.range, this.suggestions);