remove method
Removes the event with the provided id from the cache.
This is used to remove events that have been successfully posted to the network.
This will do a lookup in the cache to find the event that matches the provided id.
Implementation
void remove(String id) {
_cache.removeWhere((event) => event.id == id);
}