mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-06-20 20:34:19 -04:00
lint work
This commit is contained in:
parent
9e4008214d
commit
6e8725f569
43 changed files with 257 additions and 332 deletions
|
@ -71,11 +71,7 @@ class IdentityMaster with _$IdentityMaster {
|
|||
}
|
||||
|
||||
extension IdentityMasterExtension on IdentityMaster {
|
||||
KeyPair identityWriter(SecretKey secret) {
|
||||
return KeyPair(key: identityPublicKey, secret: secret);
|
||||
}
|
||||
KeyPair identityWriter(SecretKey secret) => KeyPair(key: identityPublicKey, secret: secret);
|
||||
|
||||
KeyPair masterWriter(SecretKey secret) {
|
||||
return KeyPair(key: masterPublicKey, secret: secret);
|
||||
}
|
||||
KeyPair masterWriter(SecretKey secret) => KeyPair(key: masterPublicKey, secret: secret);
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ _$_Identity _$$_IdentityFromJson(Map<String, dynamic> json) => _$_Identity(
|
|||
json['account_records'] as Map<String, dynamic>,
|
||||
(value) => value as String,
|
||||
(value) => ISet<AccountRecordInfo>.fromJson(
|
||||
value, (value) => AccountRecordInfo.fromJson(value))),
|
||||
value, AccountRecordInfo.fromJson)),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$_IdentityToJson(_$_Identity instance) =>
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
export 'proto/veilidchat.pb.dart';
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:veilid/veilid.dart';
|
||||
|
||||
import 'proto/veilidchat.pb.dart' as proto;
|
||||
|
||||
export 'proto/veilidchat.pb.dart';
|
||||
|
||||
/// CryptoKey protobuf marshaling
|
||||
///
|
||||
extension CryptoKeyProto on CryptoKey {
|
||||
|
@ -120,7 +121,5 @@ extension TypedKeyProto on TypedKey {
|
|||
return out;
|
||||
}
|
||||
|
||||
static TypedKey fromProto(proto.TypedKey p) {
|
||||
return TypedKey(kind: p.kind, value: CryptoKeyProto.fromProto(p.value));
|
||||
}
|
||||
static TypedKey fromProto(proto.TypedKey p) => TypedKey(kind: p.kind, value: CryptoKeyProto.fromProto(p.value));
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:fast_immutable_collections/fast_immutable_collections.dart';
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
import 'package:veilid/veilid.dart';
|
||||
import 'package:fast_immutable_collections/fast_immutable_collections.dart';
|
||||
|
||||
part 'user_login.freezed.dart';
|
||||
part 'user_login.g.dart';
|
||||
|
|
|
@ -24,7 +24,7 @@ Map<String, dynamic> _$$_UserLoginToJson(_$_UserLogin instance) =>
|
|||
_$_ActiveLogins _$$_ActiveLoginsFromJson(Map<String, dynamic> json) =>
|
||||
_$_ActiveLogins(
|
||||
userLogins: IList<UserLogin>.fromJson(
|
||||
json['user_logins'], (value) => UserLogin.fromJson(value)),
|
||||
json['user_logins'], UserLogin.fromJson),
|
||||
activeUserLogin: json['active_user_login'] == null
|
||||
? null
|
||||
: Typed<FixedEncodedString43>.fromJson(json['active_user_login']),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue