onDismiss property

VoidCallback? get onDismiss

The handler for SemanticsAction.dismiss.

This is a request to dismiss the currently focused node.

TalkBack users on Android can trigger this action in the local context menu, and VoiceOver users on iOS can trigger this action with a standard gesture or menu option.

Implementation

VoidCallback? get onDismiss => _onDismiss;
set onDismiss (VoidCallback? value)

Implementation

set onDismiss(VoidCallback? value) {
  _addArgumentlessAction(SemanticsAction.dismiss, value!);
  _onDismiss = value;
}