stopListeningToEvents method Null safety

void stopListeningToEvents()

Implementation

static void stopListeningToEvents() {
  events.cancel();
}