update method

void update({
  1. double dt = 0,
  2. bool recursive = true,
})

Implementation

void update({double dt = 0, bool recursive = true}) {
  if (updatingSuspended) {
    return;
  }

  for (var updater in updaters) {
    updater(this, dt);
  }

  if (recursive) {
    for (var submob in submobjects) {
      submob.update(dt: dt, recursive: recursive);
    }
  }
}