set instance default value

This commit is contained in:
zontreck 2023-11-04 01:43:26 -07:00
parent e0561ea13f
commit 293ecd4e01

View file

@ -20,7 +20,7 @@ class Settings {
if (!isValid()) return;
var box = Hive.box("settings");
inst = box.get("entry") as SettingsEntry;
inst = box.get("entry", defaultValue: SettingsEntry()) as SettingsEntry;
}
void Write() {