onAnimate property

void Function(PositionComponent visual, bool newValue)? onAnimate
getter/setter pair

Optional animation callback to run on toggle. This function receives the visual component being displayed and the new value.

Implementation

void Function(PositionComponent visual, bool newValue)? onAnimate;