clear method
Clears all data from storage.
Implementation
Future<void> clear() async {
try {
debugPrint('Clearing all data from storage.');
await _box.clear();
debugPrint('All data cleared from storage.');
} catch (e) {
debugPrint('Failed to clear all data: $e');
rethrow;
}
}