loadUnreadCount method
Implementation
Future<void> loadUnreadCount() async {
try {
final count = await _service.getUnreadCount();
state = state.copyWith(unreadCount: count);
} catch (_) {}
}
Future<void> loadUnreadCount() async {
try {
final count = await _service.getUnreadCount();
state = state.copyWith(unreadCount: count);
} catch (_) {}
}