BodyPart addPart([BodyPart? childPart]) { childPart ??= BodyPart(); parts ??= <BodyPart>[]; parts!.add(childPart); childPart._parent = this; return childPart; }