addChild method Null safety

SequenceNode addChild(
  1. int childId
)

Adds a child with the given ID.

Implementation

SequenceNode addChild(int childId) {
  final child = SequenceNode(childId, isUid);
  children.add(child);
  return child;
}