List<Node> get childrenOrEmpty => switch (this) { GroupNode(:final children) => children, _ => const <Node>[], };