isLastFrame property

bool get isLastFrame

Returns whether the animation is on the last frame.

Implementation

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