clear method
Clears all key value pairs from storage
Implementation
@override
Future<void> clear() async {
if (_box.isOpen) {
_instance = null;
return _lock.synchronized(() async {
await _box.clear();
await _box.close();
});
}
}