Node constructor
Creates a new node.
enabled controls whether the node updates and renders.
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,
_enabled = enabled ?? true {
addAll(children);
}