customSemanticsActions property
The handlers for each supported CustomSemanticsAction
.
Whenever a custom accessibility action is added to a node, the action SemanticsAction.customAction is automatically added. A handler is created which uses the passed argument to lookup the custom action handler from this map and invoke it, if present.
Implementation
Map<CustomSemanticsAction, VoidCallback> get customSemanticsActions => _customSemanticsActions;
Implementation
set customSemanticsActions(Map<CustomSemanticsAction, VoidCallback> value) {
_hasBeenAnnotated = true;
_actionsAsBits |= SemanticsAction.customAction.index;
_customSemanticsActions = value;
_actions[SemanticsAction.customAction] = _onCustomSemanticsAction;
}