Mobject constructor

Mobject({
  1. Color color = WHITE,
  2. String? name,
  3. Mobject? target,
})

Implementation

Mobject({this.color = WHITE, String? name, this.target}) {
  this.name = name ?? getName();
  submobjects = [];
  updatingSuspended = false;
  resetPoints();
  initColors();
  generatePoints();
}