PaintLayerData constructor

PaintLayerData({
  1. required PaintedModel item,
  2. required Size rawSize,
  3. required double opacity,
  4. Offset? offset,
  5. double? rotation,
  6. double? scale,
  7. String? id,
  8. bool? flipX,
  9. bool? flipY,
  10. bool? enableInteraction,
})

Creates an instance of PaintLayerData.

The item and rawSize parameters are required, and other properties are optional.

Implementation

PaintLayerData({
  required this.item,
  required this.rawSize,
  required this.opacity,
  super.offset,
  super.rotation,
  super.scale,
  super.id,
  super.flipX,
  super.flipY,
  super.enableInteraction,
});