EtchLayer class

Creates a separate canvas layer which can have its own transformation

Inheritance

Constructors

EtchLayer({required List<EtchElement> etchElements, Matrix4? transform})
Default constructor which can be supplied with a Matrix4 transformation for the canvas layer
EtchLayer.rotate({required List<EtchElement> etchElements, double rotateX = 0.0, double rotateY = 0.0, double rotateZ = 0.0})
Creates a canvas layer with this rotation
EtchLayer.scale({required List<EtchElement> etchElements, Offset scale = const Offset(0, 0)})
Creates a canvas layer with this scale
EtchLayer.translate({required List<EtchElement> etchElements, Offset translate = const Offset(0, 0)})
Creates a canvas layer with this translation

Properties

etchElements List<EtchElement>
Elements to paint inside the canvas layer
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas, Size size) → void
override
shouldRepaint(covariant EtchElement oldElement) bool
override
toString() String
A string representation of this object.
inherited

Operators

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