init abstract method

void init(
  1. String? path, {
  2. HiveStorageBackendPreference backendPreference = HiveStorageBackendPreference.native,
})

Initialize Hive by giving it a home directory.

(Not necessary in the browser)

Implementation

void init(
  String? path, {
  HiveStorageBackendPreference backendPreference =
      HiveStorageBackendPreference.native,
});