operator [] method
Eases access to a nested part, same as accessing parts[index]
Implementation
BodyPart operator [](int index) {
final parts = this.parts;
return parts != null
? parts.elementAt(index)
: throw RangeError('$index invalid for BodyPart with length of 0');
}