isLastFrame property

bool isLastFrame

Returns whether the animation is on the last frame.

Implementation

bool get isLastFrame => currentIndex == spriteAnimation.frames.length - 1;