initialize static method

Future<bool> initialize(
  1. String? path, {
  2. List<int>? encryptionKey,
})

Implementation

static Future<bool> initialize(String? path, {List<int>? encryptionKey}) async {
  try
  {
    Log().info('Initializing Database at Path: $path');
    Hive.init(path);
    _initialized.complete(true);
  }
  catch (e) {
    Log().exception(e, caller: "database -> initialize(String? path) async");
  }
  return _initialized.isCompleted;
}