void addChild(Scope child) { children ??= []; if (!children!.contains(child)) children!.add(child); }