set default value to nullable field

This commit is contained in:
Godwin Asuquo 2022-12-12 20:34:45 +01:00
parent 6c9f9a4d19
commit 9ce6c6e01a
3 changed files with 4 additions and 4 deletions

View file

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