pause method

void pause()

Implementation

void pause() {
  if (!value) {
    value = true;
    notifyListeners();
  }
}