Layer constructor
The Layer class provides properties for layers in the image editor, such as
Implementation
Layer({
Offset? offset,
double? opacity,
double? rotation,
double? scale,
}) {
this.offset = offset ?? const Offset(64, 64);
this.opacity = opacity ?? 1;
this.rotation = rotation ?? 0;
this.scale = scale ?? 1;
}