removeMember method

void removeMember(
  1. String? key
)

Will be called from addDataToList or mapUpdatedEventDataToWidget

Implementation

void removeMember(String? key) async {
  eventsToShareLocationWith
      .removeWhere((element) => key!.contains(element.key!));

  print(
      'after deleting atsignsToShareLocationWith length ${eventsToShareLocationWith.length}');
}