sync bloc

This commit is contained in:
efrilm
2025-10-24 22:25:01 +07:00
parent 4fdd1e44f8
commit 6892895021
10 changed files with 965 additions and 0 deletions
@@ -349,4 +349,17 @@ class CategoryRepository implements ICategoryRepository {
log('🧹 Clearing category cache', name: _logName);
_localDataProvider.clearCache();
}
@override
Future<void> clearAllCategories() async {
try {
log('🗑️ Clearing all categories from repository...', name: _logName);
await _localDataProvider.clearAllCategories();
clearCache();
log('✅ All categories cleared successfully', name: _logName);
} catch (e) {
log('❌ Error clearing all categories: $e', name: _logName);
rethrow;
}
}
}