void setColor({required Color color, bool family = true}) { if (family) { for (var submob in submobjects) { submob.setColor(color: color, family: true); } } this.color = color; }