OverlayTransform class

Position, scale and rotation of an overlay on the canvas.

Annotations

Constructors

OverlayTransform({required Offset position, double scale = 1, double rotation = 0})
Creates a transform.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
normalizedRotation → double
Rotation normalised to (-π, π].
no setter
position → Offset
Centre of the overlay in canvas units.
final
rotation → double
Clockwise rotation in radians.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scale → double
Uniform scale; 1 is the overlay's natural size.
final

Methods

copyWith({Offset? position, double? scale, double? rotation}) → OverlayTransform
Returns a copy with the given values replaced.
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.
override