SpriteImage class

One region, drawn still.

final logo = SpriteImage('assets/logo.png');

SpriteSheet.image draws one frame of a grid this way, as a tile map does.

Inheritance

Constructors

SpriteImage(String asset)
Draws the whole of the image cached at asset.
factory
SpriteImage.of(SpriteRegion region)
Draws region, which holds one frame.

Properties

asset → String
The cache key this was drawn from.
no setter
entries → List<SpriteEntry<int>>
What this holds, in the order its entries are numbered.
final
hashCode → int
The hash code for this object.
no setterinherited
region → SpriteRegion
Which piece of which asset this draws.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reload() → SpriteImage
Re-resolves this sprite against Ignis.cache.
override
resolve(int key) → SpriteEntry<int>?
The entry key names, or null where nothing here answers to it.
override
toString() → String
A string representation of this object.
inherited

Operators

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