onPressed property

(void Function()?) onPressed
getter/setter pair

Callback for what should happen when the button is pressed. If you want to directly interact with onTapUp, onTapDown or onTapCancel it is recommended to extend HudButtonComponent.

Implementation

void Function()? onPressed;