customSemanticsActions property Null safety

Map<CustomSemanticsAction, VoidCallback>? customSemanticsActions

The handlers and supported CustomSemanticsActions for this node.

These handlers are called whenever the user performs the associated custom accessibility action from a special platform menu. Providing any custom actions here also adds SemanticsAction.customAction to the node.

See also:

  • CustomSemanticsAction, for an explanation of custom actions.

Implementation

Map<CustomSemanticsAction, VoidCallback>? get customSemanticsActions => _customSemanticsActions;
void customSemanticsActions=(Map<CustomSemanticsAction, VoidCallback>? value)

Implementation

set customSemanticsActions(Map<CustomSemanticsAction, VoidCallback>? value) {
  if (_customSemanticsActions == value)
    return;
  _customSemanticsActions = value;
  markNeedsSemanticsUpdate();
}