switchAccount method
set logged account
Implementation
void switchAccount({required String pubkey}) {
if (pubkey.isNotEmpty && accounts.containsKey(pubkey)) {
_loggedPubkey = pubkey;
} else {
throw Exception("unknown account for pubkey");
}
}