SheetRow<T> class
One row of a SpriteSheet's grid, and how it plays.
SpriteSheet('assets/slime.png', .all(56), fps: 16, rows: [
.new(key: 'idle', frames: 14),
.new(key: 'jump', frames: 30, fps: 24, loop: false),
]);
Constructors
Properties
-
durations
→ List<
double> ? -
How long each frame is held, in seconds, or null to play at fps.
final
- fps → double?
-
The frames per second this row plays at, or null for the sheet's rate.
final
- frames → int?
-
How many frames this row plays, or null for every column after start.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → T?
-
What this row answers to in Sprite.rowOf, or null to go unnamed.
final
- loop → bool?
-
Whether this row starts over after its last frame, or null for the
sheet's answer.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → int
-
The first column this row plays from. Defaults to 0.
final
Methods
-
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