onSetValue property

SemanticSetValueCallback? onSetValue
final

When non-null, the control advertises SemanticAction.setValue and routes the payload here — letting an agent set the value directly (idempotent), instead of toggling via onActivate and hoping it lands.

Implementation

final SemanticSetValueCallback? onSetValue;