Layer constructor

Layer({
  1. Offset? offset,
  2. double? opacity,
  3. double? rotation,
  4. double? scale,
})

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;
}