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