part of 'operation_list_cubit.dart'; enum OperationListStatus { initial, loading, success, failure } class OperationListState extends Equatable { final OperationListStatus status; final List operations; final bool hasReachedMax; final String? errorMessage; final String query; final DateTimeRange? dateRange; const OperationListState({ this.status = OperationListStatus.initial, this.operations = const [], this.hasReachedMax = false, this.errorMessage, this.query = '', this.dateRange, }); OperationListState copyWith({ OperationListStatus? status, List? operations, bool? hasReachedMax, String? errorMessage, String? query, DateTimeRange? dateRange, }) { return OperationListState( status: status ?? this.status, operations: operations ?? this.operations, hasReachedMax: hasReachedMax ?? this.hasReachedMax, errorMessage: errorMessage, query: query ?? this.query, dateRange: dateRange ?? this.dateRange, ); } @override List get props => [ status, operations, hasReachedMax, errorMessage, query, dateRange, ]; }