follow method

Future follow(
  1. String? atsign
)

Implementation

Future follow(String? atsign) async {
  Completer c = Completer();
  try {
    setStatus(Status.loading);
    var data = await _connectionsService.follow(atsign);
    if (data != null) {
      followingList!.add(data);
      _modifyFollowersList(atsign, true);
    }
    setStatus(Status.done);
    c.complete(true);
  } on Error catch (err) {
    this.error = err;
    setStatus(Status.error);
  } on Exception catch (ex) {
    this.error = ex;
    setStatus(Status.error);
  }

  return c.future;
}