startUpdateLoop method

Timer startUpdateLoop([
  1. Duration wait
])

Implementation

Timer startUpdateLoop([Duration wait]) {
  wait ??= Duration(seconds: 2);
  _updateTimer = Timer.periodic(wait, (timer) {
    draw();
  });
  return _updateTimer;
}