getAtsignsList method

Future getAtsignsList({
  1. bool isFollowing = false,
})

Implementation

Future getAtsignsList({bool isFollowing = false}) async {
  Completer c = Completer();
  bool isInit = status == null;
  try {
    setStatus(Status.loading);
    await _connectionsService.getAtsignsList(isInit: isInit);
    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;
}