ImageNode constructor

ImageNode({
  1. required NodeId id,
  2. required String imageId,
  3. required Size size,
  4. Size? naturalSize,
  5. double hitPadding = 0,
  6. Transform2D? transform,
  7. double opacity = 1,
  8. bool isVisible = true,
  9. bool isSelectable = true,
  10. bool isLocked = false,
  11. bool isDeletable = true,
  12. bool isTransformable = true,
})

Implementation

ImageNode({
  required super.id,
  required this.imageId,
  required this.size,
  this.naturalSize,
  super.hitPadding,
  super.transform,
  super.opacity,
  super.isVisible,
  super.isSelectable,
  super.isLocked,
  super.isDeletable,
  super.isTransformable,
}) : super(type: NodeType.image);