onActivate property

void Function()? onActivate
final

Activation — Enter, Space, a click, or a semantic activate. Nothing waits on work it starts, a semantic activation included: an error from that work reaches the zone (runApp's error overlay), as a key's does. Throwing SemanticActionDeclined declines the activation: a key or a click then does nothing, and a semantic activation reports it unsupported. Anything else it throws reports that activation failed.

Implementation

final void Function()? onActivate;