sendNull method
will delete locationKey for the atsign and remove from allAtsignsLocationData
Implementation
Future<bool> sendNull(List<String> atsigns) async {
var result;
await Future.forEach(atsigns, (String _atsign) async {
var atKey =
newAtKey(-1, '$locationKey-${_atsign.replaceAll('@', '')}', _atsign);
result = await atClient!.delete(
atKey,
);
if (result) {
allAtsignsLocationData.remove(_atsign); // remove from map as well
}
_logger.finer('result : $result');
});
return result;
}