part of 'dashboard_note_list_cubit.dart';

enum DashboardNoteListStatus { initial, loading, success, failure }

class DashboardNoteListState extends Equatable {
  final DashboardNoteListStatus status;
  final List<NoteModel> notes;
  final String? errorMessage;

  const DashboardNoteListState({
    this.status = DashboardNoteListStatus.initial,
    this.notes = const [],
    this.errorMessage,
  });

  DashboardNoteListState copyWith({
    DashboardNoteListStatus? status,
    List<NoteModel>? notes,
    String? errorMessage,
  }) {
    return DashboardNoteListState(
      status: status ?? this.status,
      notes: notes ?? this.notes,
      errorMessage: errorMessage ?? this.errorMessage,
    );
  }

  @override
  List<Object?> get props => [status, notes, errorMessage];
}
