RemoteSecondary constructor

RemoteSecondary(
  1. String atSign,
  2. AtClientPreference preference, {
  3. String? privateKey,
})

Implementation

RemoteSecondary(String atSign, AtClientPreference preference,
    {String? privateKey}) {
  _atSign = AtUtils.formatAtSign(atSign)!;
  _preference = preference;
  privateKey ??= preference.privateKey;
  atLookUp = AtLookupImpl(atSign, preference.rootDomain, preference.rootPort,
      privateKey: privateKey, cramSecret: preference.cramSecret);
  atLookupSync = AtLookupSync(
      atSign, preference.rootDomain, preference.rootPort,
      privateKey: atLookUp.privateKey, cramSecret: preference.cramSecret);
}