checkAtsignStatus method

Future<AtSignStatus?> checkAtsignStatus({
  1. String? atsign,
})

Returns the status of an atsign

Implementation

Future<AtSignStatus?> checkAtsignStatus({String? atsign}) async {
  atsign = atsign ?? _atsign;
  if (atsign == null) {
    return null;
  }
  atsign = formatAtSign(atsign);
  AtStatusImpl atStatusImpl =
      AtStatusImpl(rootUrl: AppConstants.serverDomain);
  AtStatus status = await atStatusImpl.get(atsign!);
  return status.status();
}