close method

Future<void> close()

Implementation

Future<void> close() async {
  if (_config.type == StorageType.hive) {
    await _hiveBox?.close();
  }
  _instance = null;
}