SpriteFrame class
Constructors
- SpriteFrame(Image image, {required Offset anchor, required Offset translate, Duration? interval, ImagePortion? portion})
Properties
- anchor → Offset
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → Image
-
final
- interval → Duration?
-
final
- portion → ImagePortion
-
final
-
rectangle
→ Rectangle<
num> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- translate → Offset
-
final
Methods
-
calcOffset(
Sprite sprite, Offset offset, Offset worldAnchor, double scale, Size size) → Offset -
calcRect(
Sprite sprite, Offset offset, Offset worldAnchor, double scale, Size size) → Rect -
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