Texture class

Implementers

Constructors

Texture.fromImage(Image image, {Vector2? position, Vector2? size, Vector2? trimOffset, Vector2? trimSize})

Properties

hashCode int
The hash code for this object.
no setterinherited
image Image
getter/setter pair
position Vector2
getter/setter pair
rect Rect
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Vector2
getter/setter pair
trimOffset Vector2
getter/setter pair
trimSize Vector2
getter/setter pair

Methods

computeRenderScale(ScalingMode mode, Vector2? size) double
computeRenderSize(ScalingMode mode, Vector2 size) Vector2
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Canvas canvas, Vector2 position, double rotation, double scale, ScalingMode scalingMode, Vector2? size, Paint paint) → void
toString() String
A string representation of this object.
inherited

Operators

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