stop method Null safety

void stop()

Stops a Loop

Implementation

void stop() {
  _stop = true;
}