init static method

Future<Kooza> init(
  1. String dbName, {
  2. String path = 'kooza',
})

Initializes an instance of Kooza. Please remember to close it when you are not using it.

Implementation

static Future<Kooza> init(
  String dbName, {
  String path = 'kooza',
}) async {
  await Hive.initFlutter(path);
  return KoozaImpl.init(dbName);
}