part of 'messages_bloc.dart';

sealed class MessagesState extends Equatable {
  final List<Messages> messages;

  const MessagesState({this.messages = const []});

  @override
  List<Object> get props => [messages];
}

final class MessagesInitial extends MessagesState {}

final class MessagesLoading extends MessagesState {}

final class MessagesFail extends MessagesState {}

final class MessagesSuccess extends MessagesState {
  final bool isGetAll;
  const MessagesSuccess({required super.messages, this.isGetAll = false});
}

final class MessagesEmpty extends MessagesState {}
