SpriteImage class

Constructors

SpriteImage({required Image sprite, Vector3? position, Rect? section, String name = '', Color color = const Color(0xffff0000)})

Properties

color Color
getter/setter pair
from ↔ Vector2
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String
getter/setter pair
position ↔ Vector3
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
section Rect
getter/setter pair
sprite Image
getter/setter pair

Methods

move(int x, int y) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetPosition() → void
savePosition() → void
toString() String
A string representation of this object.
inherited
updatePosition(Vector2 to, [double sensitivity = 1.0]) → void
updatePositionStart(Vector2 to) → void

Operators

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