onPaste property

VoidCallback? get onPaste

The handler for SemanticsAction.paste.

This is a request to paste the current content of the clipboard.

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

Implementation

VoidCallback? get onPaste => _onPaste;
set onPaste (VoidCallback? value)

Implementation

set onPaste(VoidCallback? value) {
  _addArgumentlessAction(SemanticsAction.paste, value!);
  _onPaste = value;
}