isLastFrame property

bool isLastFrame

Returns whether the animation is on the last frame.

Implementation

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