Animator class

/////////////////////////////////////////////////////////

Animator Class sprite.animator.add(name, frames); sprite.animator.play(name, rate, loop); sprite.animator.stop(name);

/////////////////////////////////////////////////////////

Constructors

Animator()

Properties

framesLength int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isEnabled bool
no setter
onComplete Function?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String
getter/setter pair

Methods

add({String name = "", List? frames, int rate = Constant.RATE, bool loop = false}) → void
clear() → void
/////////////////////////////////////////////////////////
dispose() → dynamic
getCurrentFrameKey() → dynamic
make(String name, [List? frames, int rate = Constant.RATE, bool loop = false]) → void
/////////////////////////////////////////////////////////
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
play(String name, [int? rate, bool loop = false]) → void
/////////////////////////////////////////////////////////
remove(String name, [bool destroy = false]) → void
stop([String? name]) → void
toString() String
A string representation of this object.
inherited
update(int time) → void
/////////////////////////////////////////////////////////

Operators

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