isSingleFrame property

bool get isSingleFrame

Returns whether the animation has only a single frame (and is, thus, a still image).

Implementation

bool get isSingleFrame => spriteAnimation.frames.length == 1;