removeFollower method

Future<bool> removeFollower(
  1. String atsign
)

Implementation

Future<bool> removeFollower(String atsign) async {
  var followersList = followers.getKey!.value.split(',');
  bool result = false;
  var atKey = _formKey();
  followersList.remove(atsign);
  if (followersList.isNotEmpty) {
    result = await _sdkService.put(atKey, followersList.toString());
    followers.list!.remove(atsign);
  } else {
    result = await _sdkService.put(atKey, 'null');
  }
  return result;
}