clearAll method
Removes all entries from either the standard or secure store.
Implementation
Future<void> clearAll({required bool isSecure}) async {
assert(_initialized, 'Call init() before clearing.');
_isLoading = true;
notifyListeners();
try {
if (isSecure) {
await _secure!.clear();
_secureEntries = const {};
} else {
await _standard!.clear();
_standardEntries = const {};
}
_error = null;
} catch (e) {
_error = 'Failed to clear: $e';
} finally {
_isLoading = false;
notifyListeners();
}
}