set instance default value
This commit is contained in:
parent
e0561ea13f
commit
293ecd4e01
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Settings {
|
||||||
if (!isValid()) return;
|
if (!isValid()) return;
|
||||||
var box = Hive.box("settings");
|
var box = Hive.box("settings");
|
||||||
|
|
||||||
inst = box.get("entry") as SettingsEntry;
|
inst = box.get("entry", defaultValue: SettingsEntry()) as SettingsEntry;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Write() {
|
void Write() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue