unfollow method

Future<bool> unfollow(
  1. String? atsign
)

Implementation

Future<bool> unfollow(String? atsign) async {
  atsign = formatAtSign(atsign);
  var atKey = this._formKey(isFollowing: true);
  var atMetadata = atKey.metadata;
  var result = await _modifyKey(atsign, this.following, atKey);
  if (result) {
    atKey..sharedWith = atsign;
    atMetadata?..isPublic = false;
    atKey..metadata = atMetadata;
    await _sdkService.notify(
        atKey, atsign!, OperationEnum.delete, _onNotifyDone, _onNotifyError);
    await _sdkService.sync();
  }
  return result;
}