init method

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

init call lazy only once before call load or save by default do nothing

Implementation

@override
Future<void> init() async {
  box = await Hive.openBox<T>(boxName);
}