ExtendedCupertinoSpellCheckSuggestionsToolbar constructor

const ExtendedCupertinoSpellCheckSuggestionsToolbar({
  1. Key? key,
  2. required TextSelectionToolbarAnchors anchors,
  3. required List<ContextMenuButtonItem> buttonItems,
})

Constructs a ExtendedCupertinoSpellCheckSuggestionsToolbar.

buttonItems must not contain more than three items.

Implementation

const ExtendedCupertinoSpellCheckSuggestionsToolbar({
  super.key,
  required this.anchors,
  required this.buttonItems,
}) : assert(buttonItems.length <= _kMaxSuggestions);