init method

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

Implementation

@override
FutureOr<void> init() async {
  try {
    box = await Hive.openBox("BackgroundTaskCache_hive_box");
  } on Exception catch (e) {
    debugPrint("BackgroundTaskCache init exception $e");
    rethrow;
  } on Error catch (e) {
    debugPrint("BackgroundTaskCache init error $e");
    rethrow;
  }
}