onCut property

VoidCallback onCut

The handler for SemanticsAction.cut.

This is a request to cut the current selection and place it in the clipboard.

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

Implementation

VoidCallback get onCut => _onCut;
void onCut= (VoidCallback handler)

Implementation

set onCut(VoidCallback handler) {
  if (_onCut == handler)
    return;
  final bool hadValue = _onCut != null;
  _onCut = handler;
  if ((handler != null) != hadValue)
    markNeedsSemanticsUpdate();
}