setColor method

void setColor({
  1. required Color color,
  2. bool family = true,
})

Implementation

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

  this.color = color;
}