CupertinoSpellCheckSuggestionsToolbar constructor

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

Constructs a CupertinoSpellCheckSuggestionsToolbar.

buttonItems must not contain more than three items.

Implementation

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