changePrimaryAtsign method

Future<bool> changePrimaryAtsign({
  1. required String atsign,
})

Function to make the atsign passed as primary

Implementation

Future<bool> changePrimaryAtsign({required String atsign}) async {
  final result = await keyChainManager.makeAtSignPrimary(atsign);
  if (result == true) {
    setAtsign = atsign;
  }
  return result;
}