init method

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

Initializes the database service.

Implementation

@override
Future<void> init() async {
  Hive.init(dirPath);
  _box = await Hive.openBox<String>(_boxName);
}