onFrame property

void Function(int currentIndex)? onFrame
getter/setter pair

Registered method to be triggered when the animation frame updates.

Implementation

void Function(int currentIndex)? onFrame;