getInstance static method

Future<AtContactsImpl> getInstance(
  1. String atSign, {
  2. RegexType? regexType,
})

Implementation

static Future<AtContactsImpl> getInstance(String atSign,
    {RegexType? regexType}) async {
  try {
    atSign = AtUtils.fixAtSign(AtUtils.formatAtSign(atSign)!);
  } on Exception {
    rethrow;
  }
  var atClient = await AtClientImpl.getClient(atSign);
  return AtContactsImpl(atClient, atSign, regexType: regexType);
}