AdaptiveTextSelectionToolbar.selectable constructor

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

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

See also:

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,
     );