DrawableObject class Null safety

Inheritance

Constructors

DrawableObject()

Properties

color int?
read / write
data TransformData
final
hashCode int
The hash code for this object. [...]
read-only, inherited
hasTextureRegion bool
read-only
image Image?
read-only
isReady bool
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scos double
read-only
ssin double
read-only
textureRegion TextureRegion?
read / write
tx double
read-only
ty double
read-only

Methods

addPosition(double x, double y) → void
addPositionFrom(Vector2 position) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
reset() → void
resetTexture() → void
setData({required TextureRegion textureRegion, double rotation = 0.0, double scale = 1.0, int? color, double opacity = 1.0}) → void
setDataRegion(TextureRegion textureRegion, {double tx = 0, double ty = 0}) → void
setTransformData({double rotation = 0.0, double scale = 1.0, double anchorX = 0.0, double anchorY = 0.0}) → void
toString() String
A string representation of this object. [...]
override
visibleAtPosition(Vector2 screenLocation) bool
override

Operators

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