onCopy property

VoidCallback? onCopy

The handler for SemanticsAction.copy.

This is a request to copy the current selection to the clipboard.

TalkBack users on Android can trigger this action from the local context menu of a text field, for example.


VoidCallback? get onCopy => _onCopy;
void onCopy=(VoidCallback? value)


set onCopy(VoidCallback? value) {
  _addArgumentlessAction(SemanticsAction.copy, value!);
  _onCopy = value;