removeEvent method

void removeEvent(
  1. String id
)

Removes the event with the given id.

Implementation

void removeEvent(String id) {
  _events.removeWhere((e) => e.id == id);
  notifyListeners();
}