SpriteAnimationRender class

Constructors

SpriteAnimationRender({SpriteAnimation? animation, Vector2? size, Vector2? position, VoidCallback? onFinish, VoidCallback? onStart, bool loop = true, bool autoPlay = true})

Properties

animation SpriteAnimation?
no getter
currentIndex int
no setter
hashCode int
The hash code for this object.
no setterinherited
isLastFrame bool
no setter
isPaused bool
no setter
loop bool
final
onFinish VoidCallback?
final
onStart VoidCallback?
final
position Vector2?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Vector2?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
play() → void
render(Canvas canvas, {Paint? overridePaint, Vector2? size, Vector2? position}) → void
toString() String
A string representation of this object.
inherited
update(double dt) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited