Files
unionflow-server-api/unionflow/unionflow-mobile-apps/lib/features/notifications/presentation/bloc/notifications_state.dart
dahoud b1957c1c81 feat(unionflow): ajout Spec-Kit, constitution, mission mutuelles
- Config Spec-Kit pour Spec-Driven Development
- CONSTITUTION.md + .specify/memory/constitution.md
- Commandes Cursor /speckit.*, règles projet
- Mission: associations + mutuelles d'épargne et de financement
- .gitignore: versionner config spec-kit unionflow

Made-with: Cursor
2026-02-27 14:41:07 +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];
}