Texture class Null safety

Implementers

Constructors

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

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
image Image
read / write
position Vector2
read / write
rect Rect
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size Vector2
read / write
trimOffset Vector2
read / write
trimSize Vector2
read / write

Methods

computeRenderScale(ScalingMode mode, Vector2? size) double
computeRenderSize(ScalingMode mode, Vector2 size) Vector2
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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