onAnimate property
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;
Optional animation callback to run on toggle. This function receives the visual component being displayed and the new value.
void Function(PositionComponent visual, bool newValue)? onAnimate;