CupertinoAdaptiveTextSelectionToolbar.editable constructor
- Key? key,
- required ClipboardStatus clipboardStatus,
- required VoidCallback? onCopy,
- required VoidCallback? onCut,
- required VoidCallback? onPaste,
- required VoidCallback? onSelectAll,
- required VoidCallback? onLookUp,
- required VoidCallback? onSearchWeb,
- required VoidCallback? onLiveTextInput,
- required TextSelectionToolbarAnchors anchors,
Create an instance of CupertinoAdaptiveTextSelectionToolbar with the default children for an editable field.
If a callback is null, then its corresponding button will not be built.
See also:
- AdaptiveTextSelectionToolbar.editable, which is similar to this but includes Material and Cupertino toolbars.
- CupertinoAdaptiveTextSelectionToolbar.new, which takes the children directly as a list of widgets.
- CupertinoAdaptiveTextSelectionToolbar.editableText, which builds the default Cupertino children for an EditableText.
- CupertinoAdaptiveTextSelectionToolbar.buttonItems, which takes a list of ContextMenuButtonItems instead of children widgets.
- CupertinoAdaptiveTextSelectionToolbar.selectable, which builds the Cupertino children for content that is selectable but not editable.
Implementation
CupertinoAdaptiveTextSelectionToolbar.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
);