childrenOrEmpty property

List<Node> get childrenOrEmpty

Implementation

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