Node constructor
Creates a new node.
enabled sets whether the node ticks, renders, and accepts input.
Defaults to true.
priority controls this node's order when updating and rendering.
Defaults to 0.
If children are provided, they are immediately added to the node.
Implementation
Node({
bool? enabled,
int? priority,
Iterable<Node> children = const [],
}) : _priority = priority ?? 0,
activity = (enabled ?? true) ? .all : .none {
addAll(children);
}