Merge pull request #669 from cake-tech/fix-nullable-node-field

[skip ci] fix issue with nullable field in Node adapter
This commit is contained in:
Omar Hatem 2022-12-12 21:48:07 +02:00 committed by GitHub
commit 8d42dd0306
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ class Node extends HiveObject with Keyable {
@HiveField(4)
bool? useSSL;
@HiveField(5)
@HiveField(5, defaultValue: false)
bool trusted;
bool get isSSL => useSSL ?? false;