removeData method

void removeData(
  1. String? key
)

Removes a notification from list

Implementation

void removeData(String? key) {
  allLocationNotifications
      .removeWhere((notification) => key!.contains(notification.atKey!.key!));
  notifyListeners();
  // Remove location sharing
  SendLocationNotification().removeMember(key);
}