init method

  1. @override
Future<void> init(
  1. FutureOr<T> defaultValue(
      ),
    1. String blopName
    )
    override

    init call lazy only once before call load or save

    Implementation

    @override
    Future<void> init(
      FutureOr<T> Function() defaultValue,
      String blopName,
    ) async {
      this.defaultValue = defaultValue;
      box = await Hive.openBox<T>(blopName);
    }