AdaptiveTextSelectionToolbar.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 AdaptiveTextSelectionToolbar with the default children for an editable field.
If a callback is null, then its corresponding button will not be built.
See also:
- AdaptiveTextSelectionToolbar.new, which takes the children directly as a list of widgets.
- AdaptiveTextSelectionToolbar.editableText, which builds the default children for an EditableText.
- AdaptiveTextSelectionToolbar.buttonItems, which takes a list of ContextMenuButtonItems instead of children widgets.
- AdaptiveTextSelectionToolbar.selectable, which builds the default children for content that is selectable but not editable.
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
);