isLastFrame property
bool
get
isLastFrame
Returns whether the animation is on the last frame.
Implementation
bool get isLastFrame => currentIndex == spriteAnimation.frames.length - 1;
Returns whether the animation is on the last frame.
bool get isLastFrame => currentIndex == spriteAnimation.frames.length - 1;