deleteAtSign method

Future<void> deleteAtSign(
  1. String atsign
)

Deletes the atsign from device storage.

Implementation

Future<void> deleteAtSign(String atsign) async {
  await _keyChainManager.deleteAtSignFromKeychain(atsign);
  atClientServiceMap!.remove(atsign);
  monitorConnectionMap!.remove(atsign);
  if (atsign == currentAtsign) currentAtsign = null;
  if (atsign == lastOnboardedAtsign) lastOnboardedAtsign = null;
  atSignsList!.remove(atsign);
}