Files
eatvio_app/lib/features/notifications/presentation/notifications_cubit/notifications_state.dart
2025-04-24 04:20:24 +07:00

21 lines
668 B
Dart

import 'package:eatvio_app/features/notifications/models/notification_model.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
part 'notifications_state.freezed.dart';
@freezed
abstract class NotificationsState with _$NotificationsState {
const factory NotificationsState() = _NotificationsState;
const factory NotificationsState.empty() = NotificationsStateEmpty;
const factory NotificationsState.loaded({
required List<NotificationModel> notifications,
required int notificationsCount,
}) = NotificationsStateLoaded;
const factory NotificationsState.error({
required String errorMessage,
}) = NotificationsStateError;
}