AdaptiveTextSelectionToolbar.editable constructor

AdaptiveTextSelectionToolbar.editable({
  1. Key? key,
  2. required ClipboardStatus clipboardStatus,
  3. required VoidCallback? onCopy,
  4. required VoidCallback? onCut,
  5. required VoidCallback? onPaste,
  6. required VoidCallback? onSelectAll,
  7. required VoidCallback? onLookUp,
  8. required VoidCallback? onSearchWeb,
  9. required VoidCallback? onShare,
  10. required VoidCallback? onLiveTextInput,
  11. required TextSelectionToolbarAnchors anchors,
})

Create an instance of AdaptiveTextSelectionToolbar with the default children for an editable field.

If a callback is null, then its corresponding button will not be built.

See also:

Implementation

AdaptiveTextSelectionToolbar.editable({
  super.key,
  required ClipboardStatus clipboardStatus,
  required VoidCallback? onCopy,
  required VoidCallback? onCut,
  required VoidCallback? onPaste,
  required VoidCallback? onSelectAll,
  required VoidCallback? onLookUp,
  required VoidCallback? onSearchWeb,
  required VoidCallback? onShare,
  required VoidCallback? onLiveTextInput,
  required this.anchors,
}) : children = null,
     buttonItems = EditableText.getEditableButtonItems(
       clipboardStatus: clipboardStatus,
       onCopy: onCopy,
       onCut: onCut,
       onPaste: onPaste,
       onSelectAll: onSelectAll,
       onLookUp: onLookUp,
       onSearchWeb: onSearchWeb,
       onShare: onShare,
       onLiveTextInput: onLiveTextInput
     );