initialize method

  1. @override
Future<void> initialize()
override

Initialize the repository.

Implementation

@override
Future<void> initialize() async {
  try {
    _box = await Hive.openBox(boxName);
  }
  on Exception {
    // Hive.init(path) has not been called.
  }
}