import 'package:paperless_api/paperless_api.dart'; import 'package:paperless_mobile/features/paged_document_view/model/paged_documents_state.dart'; class LinkedDocumentsState extends PagedDocumentsState { const LinkedDocumentsState({ super.filter, super.isLoading, super.hasLoaded, super.value, }); LinkedDocumentsState copyWith({ DocumentFilter? filter, bool? isLoading, bool? hasLoaded, List>? value, }) { return LinkedDocumentsState( filter: filter ?? this.filter, isLoading: isLoading ?? this.isLoading, hasLoaded: hasLoaded ?? this.hasLoaded, value: value ?? this.value, ); } @override LinkedDocumentsState copyWithPaged({ bool? hasLoaded, bool? isLoading, List>? value, DocumentFilter? filter, }) { return copyWith( hasLoaded: hasLoaded, isLoading: isLoading, value: value, filter: filter, ); } @override List get props => [ filter, isLoading, hasLoaded, value, ]; }