SpatialNode constructor
Implementation
SpatialNode({
Shape? shape,
ShapeInheritance? inherit,
Vector2? position,
Vector2? scale,
double? angle,
Anchor? anchor,
super.enabled,
super.priority,
super.children,
}) : _shape = shape ?? .none,
inherit = inherit ?? .none,
position = .copy(position ?? .zero),
scale = .copy(scale ?? .all(1)),
angle = angle ?? 0,
anchor = anchor ?? .topLeft;