removeBy method

void removeBy(
  1. AppFitEvent event
)

Removes the event with the provided event 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 event.

Implementation

void removeBy(AppFitEvent event) {
  remove(event.id);
}