AdaptiveTextSelectionToolbar.selectable constructor
- Key? key,
- required VoidCallback onCopy,
- required VoidCallback onSelectAll,
- required SelectionGeometry selectionGeometry,
- required TextSelectionToolbarAnchors anchors,
Create an instance of AdaptiveTextSelectionToolbar with the default children for selectable, but not editable, content.
See also:
- AdaptiveTextSelectionToolbar.new, which takes the children directly as a list of widgets.
- AdaptiveTextSelectionToolbar.buttonItems, which takes a list of ContextMenuButtonItems instead of children widgets.
- AdaptiveTextSelectionToolbar.editable, which builds the default children for an editable field.
- AdaptiveTextSelectionToolbar.editableText, which builds the default children for an EditableText.
Implementation
AdaptiveTextSelectionToolbar.selectable({
super.key,
required VoidCallback onCopy,
required VoidCallback onSelectAll,
required VoidCallback? onShare,
required SelectionGeometry selectionGeometry,
required this.anchors,
}) : children = null,
buttonItems = SelectableRegion.getSelectableButtonItems(
selectionGeometry: selectionGeometry,
onCopy: onCopy,
onSelectAll: onSelectAll,
onShare: onShare,
);