init static method

Future<void> init()

Implementation

static Future<void> init() async {
  var bucketsDir = Directory(GlobalConst.bucketsDataDir);
  if (!bucketsDir.existsSync()) {
    bucketsDir.createSync(recursive: true);
  }
  Hive.init(GlobalConst.bucketsDataDir);
}