SemanticActionCallback typedef

SemanticActionCallback = FutureOr<void> Function(SemanticAction action)

Carries out a SemanticAction on a node.

Returning reports the action completed and throwing reports it failed. A handler that did not carry the action out — a command that is disabled or gone, a dismissal a PopScope refused — throws SemanticActionDeclined, which reports it unsupported.

Implementation

typedef SemanticActionCallback = FutureOr<void> Function(SemanticAction action);