dispose method
Closes the Hive box and releases resources.
Implementation
Future<void> dispose() async {
await _box?.close();
_box = null;
}
Closes the Hive box and releases resources.
Future<void> dispose() async {
await _box?.close();
_box = null;
}