encryptAccount method
Implementation
Future<Account?> encryptAccount(String addr, String passphrase,
[Map<String, dynamic>? options]) async {
var found = this.getAccount(addr);
if (found == null) return null;
if (found is Account || !found.isEncrypted) {
await found.encryptAccount(passphrase, options);
this.update(addr, found);
return found;
} else {
return null;
}
}