lint cleanup

This commit is contained in:
Christien Rioux 2023-07-26 17:42:11 -04:00
parent fe9d9f8aca
commit 9fa1666e8b
22 changed files with 178 additions and 155 deletions

View file

@ -55,7 +55,8 @@ class LocalAccounts extends _$LocalAccounts
Future<LocalAccount> newAccount(
{required IdentityMaster identityMaster,
required SecretKey identitySecret,
required proto.Account account, EncryptionKeyType encryptionKeyType = EncryptionKeyType.none,
required proto.Account account,
EncryptionKeyType encryptionKeyType = EncryptionKeyType.none,
String encryptionKey = ''}) async {
final veilid = await eventualVeilid.future;
final localAccounts = state.requireValue;
@ -109,7 +110,7 @@ class LocalAccounts extends _$LocalAccounts
// Update identity key to include account
final newAccountRecordInfo = AccountRecordInfo(
key: accountRec.key(), owner: accountRec.ownerKeyPair()!);
key: accountRec.key, owner: accountRec.ownerKeyPair!);
await identityRec.eventualUpdateJson(Identity.fromJson,
(oldIdentity) async {
@ -141,7 +142,7 @@ class LocalAccounts extends _$LocalAccounts
await store(updated);
state = AsyncValue.data(updated);
// xxx todo: wipe messages
// TO DO: wipe messages
return true;
}