onSemanticsAction property Null safety

  1. @override
SemanticsActionCallback? onSemanticsAction
override

A callback that is invoked whenever the user requests an action to be performed.

This callback is used when the user expresses the action they wish to perform based on the semantics supplied by updateSemantics.

The framework invokes this callback in the same zone in which the callback was set.

Implementation

@override
ui.SemanticsActionCallback? get onSemanticsAction => _platformDispatcher.onSemanticsAction;
  1. @override
void onSemanticsAction=(SemanticsActionCallback? callback)
override

Implementation

@override
set onSemanticsAction(ui.SemanticsActionCallback? callback) {
  _platformDispatcher.onSemanticsAction = callback;
}