SceneNode constructor
SceneNode({ - required NodeId id,
- required NodeType type,
- double hitPadding = 0,
- Transform2D? transform,
- double opacity = 1,
- bool isVisible = true,
- bool isSelectable = true,
- bool isLocked = false,
- bool isDeletable = true,
- 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;