PaintingLayerData constructor

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

Creates an instance of PaintingLayerData.

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

Implementation

PaintingLayerData({
  required this.item,
  required this.rawSize,
  Offset? offset,
  double? opacity,
  double? rotation,
  double? scale,
  String? id,
  bool? flipX,
  bool? flipY,
}) : super(
        offset: offset,
        opacity: opacity,
        rotation: rotation,
        scale: scale,
        id: id,
        flipX: flipX,
        flipY: flipY,
      );