getBox static method
Implementation
static getBox(String name) async {
Box box;
if (!Hive.isBoxOpen(name)) {
box = await Hive.openBox(name);
} else {
box = Hive.box(name);
}
return box;
}
static getBox(String name) async {
Box box;
if (!Hive.isBoxOpen(name)) {
box = await Hive.openBox(name);
} else {
box = Hive.box(name);
}
return box;
}