ImageFrameProvider mixin

Generic interface for fetching frames of an image sequence such as a sprite sheet. Can be implemented to provide alternative sprite sheet implementations.

Mixin Applications

Properties

hashCode int
The hash code for this object.
no setterinherited
image Image
Returns the image to use when drawing frames.
no setter
isReady bool
Returns when the image is loaded and ready to be used.
no setter
length int
The number of frames in this provider.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
A scale to render the frames of this provider at.
no setter

Methods

getFrame(int index) Rect
Returns the Rect that defines the boundaries of the frame specified by the index.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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