getClearBox static method

dynamic getClearBox(
  1. String name
)

Implementation

static getClearBox(String name) async {
  Box box = await getBox(name);
  await box.clear().catchError((val) {
    dev.log(val);
  });
  return box;
}