SceneNode constructor

SceneNode({
  1. required NodeId id,
  2. required NodeType type,
  3. double hitPadding = 0,
  4. Transform2D? transform,
  5. double opacity = 1,
  6. bool isVisible = true,
  7. bool isSelectable = true,
  8. bool isLocked = false,
  9. bool isDeletable = true,
  10. bool isTransformable = true,
})

Implementation

SceneNode({
  required this.id,
  required this.type,
  this.hitPadding = 0,
  Transform2D? transform,
  this.opacity = 1,
  this.isVisible = true,
  this.isSelectable = true,
  this.isLocked = false,
  this.isDeletable = true,
  this.isTransformable = true,
}) : transform = transform ?? Transform2D.identity;