removeMember method

void removeMember(
  1. String? key
)

Implementation

void removeMember(String? key) async {
  LocationNotificationModel? locationNotificationModel;
  atsignsToShareLocationWith.removeWhere((element) {
    if (key!.contains(element!.key!)) locationNotificationModel = element;
    return key.contains(element.key!);
  });
  if (locationNotificationModel != null) {
    await sendNull(locationNotificationModel!);
  }

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