part of 'notes_cubit.dart'; enum NotesStatus { initial, loading, success, failure } class NotesState extends Equatable { final NotesStatus status; final List notes; final String? errorMessage; const NotesState({ this.status = NotesStatus.initial, this.notes = const [], this.errorMessage, }); NotesState copyWith({ NotesStatus? status, List? notes, String? errorMessage, }) { return NotesState( status: status ?? this.status, notes: notes ?? this.notes, errorMessage: errorMessage ?? this.errorMessage, ); } @override List get props => [status, notes, errorMessage]; }