CupertinoAdaptiveTextSelectionToolbar.editableText constructor
- Key? key,
- required EditableTextState editableTextState,
Create an instance of CupertinoAdaptiveTextSelectionToolbar with the default children for an EditableText.
See also:
- AdaptiveTextSelectionToolbar.editableText, which is similar to this but includes Material and Cupertino toolbars.
- CupertinoAdaptiveTextSelectionToolbar.new, which takes the children directly as a list of widgets.
- CupertinoAdaptiveTextSelectionToolbar.editable, which builds the default Cupertino children for an editable field.
- CupertinoAdaptiveTextSelectionToolbar.buttonItems, which takes a list of ContextMenuButtonItems instead of children widgets.
- CupertinoAdaptiveTextSelectionToolbar.selectable, which builds the Cupertino children for content that is selectable but not editable.
Implementation
CupertinoAdaptiveTextSelectionToolbar.editableText({
super.key,
required EditableTextState editableTextState,
}) : children = null,
buttonItems = editableTextState.contextMenuButtonItems,
anchors = editableTextState.contextMenuAnchors;