AnimatedTexture class

Inheritance

Constructors

AnimatedTexture.fromTextures(List<Texture> frames, {double frameTime = 1 / 60, bool loop = false})

Properties

frameTime double
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
image Image
getter/setter pairinherited
isCompleted bool
no setter
loop bool
getter/setter pair
position Vector2
getter/setter pairinherited
rect Rect
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Vector2
getter/setter pairinherited
trimOffset Vector2
getter/setter pairinherited
trimSize Vector2
getter/setter pairinherited

Methods

computeRenderScale(ScalingMode mode, Vector2? size) double
inherited
computeRenderSize(ScalingMode mode, Vector2 size) Vector2
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Canvas canvas, Vector2 position, double rotation, double scale, ScalingMode scalingMode, Vector2? size, Paint paint) → void
inherited
reset() → void
toString() String
A string representation of this object.
inherited
update(double deltaTime) → void

Operators

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