Files
unionflow-mobile-apps/lib/features/notifications/presentation/bloc/notifications_state.dart
dahoud d094d6db9c Initial commit: unionflow-mobile-apps
Application Flutter complète (sans build artifacts).

Signed-off-by: lions dev Team
2026-03-15 16:30:08 +00:00

51 lines
1.1 KiB
Dart

part of 'notifications_bloc.dart';
abstract class NotificationsState extends Equatable {
const NotificationsState();
@override
List<Object?> get props => [];
}
class NotificationsInitial extends NotificationsState {
const NotificationsInitial();
}
class NotificationsLoading extends NotificationsState {
const NotificationsLoading();
}
class NotificationsLoaded extends NotificationsState {
final List<NotificationModel> notifications;
final int nonLuesCount;
const NotificationsLoaded({
required this.notifications,
required this.nonLuesCount,
});
@override
List<Object?> get props => [notifications, nonLuesCount];
}
class NotificationMarkedAsRead extends NotificationsState {
final List<NotificationModel> notifications;
final int nonLuesCount;
const NotificationMarkedAsRead({
required this.notifications,
required this.nonLuesCount,
});
@override
List<Object?> get props => [notifications, nonLuesCount];
}
class NotificationsError extends NotificationsState {
final String message;
const NotificationsError(this.message);
@override
List<Object?> get props => [message];
}