SpellCheckSuggestionsToolbar constructor

const SpellCheckSuggestionsToolbar(
  1. {Key? key,
  2. required Offset anchor,
  3. required List<ContextMenuButtonItem> buttonItems}
)

Constructs a SpellCheckSuggestionsToolbar.

buttonItems must not contain more than four items, generally three suggestions and one delete button.

Implementation

const SpellCheckSuggestionsToolbar({
  super.key,
  required this.anchor,
  required this.buttonItems,
}) : assert(buttonItems.length <= _kMaxSuggestions + 1);