CupertinoAdaptiveTextSelectionToolbar.selectable constructor

CupertinoAdaptiveTextSelectionToolbar.selectable({
  1. Key? key,
  2. required VoidCallback onCopy,
  3. required VoidCallback onSelectAll,
  4. required SelectionGeometry selectionGeometry,
  5. required TextSelectionToolbarAnchors anchors,
})

Create an instance of CupertinoAdaptiveTextSelectionToolbar with the default children for selectable, but not editable, content.

See also:

Implementation

CupertinoAdaptiveTextSelectionToolbar.selectable({
  super.key,
  required VoidCallback onCopy,
  required VoidCallback onSelectAll,
  required SelectionGeometry selectionGeometry,
  required this.anchors,
}) : children = null,
     buttonItems = SelectableRegion.getSelectableButtonItems(
       selectionGeometry: selectionGeometry,
       onCopy: onCopy,
       onSelectAll: onSelectAll,
       onShare: null, // See https://github.com/flutter/flutter/issues/141775.
     );