noEvents method Null safety

bool noEvents()

Implementation

bool noEvents() {
  return events.isEmpty;
}