update method

void update()

Implementation

void update() {
  if (_onUpdate != null) _onUpdate!();
}