mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-09 14:08:00 -06:00
48 lines
1020 B
Dart
48 lines
1020 B
Dart
part of 'similar_documents_cubit.dart';
|
|
|
|
class SimilarDocumentsState extends PagedDocumentsState {
|
|
const SimilarDocumentsState({
|
|
super.filter,
|
|
super.hasLoaded,
|
|
super.isLoading,
|
|
super.value,
|
|
});
|
|
|
|
@override
|
|
List<Object> get props => [
|
|
filter,
|
|
hasLoaded,
|
|
isLoading,
|
|
value,
|
|
];
|
|
|
|
@override
|
|
SimilarDocumentsState copyWithPaged({
|
|
bool? hasLoaded,
|
|
bool? isLoading,
|
|
List<PagedSearchResult<DocumentModel>>? value,
|
|
DocumentFilter? filter,
|
|
}) {
|
|
return copyWith(
|
|
hasLoaded: hasLoaded,
|
|
isLoading: isLoading,
|
|
value: value,
|
|
filter: filter,
|
|
);
|
|
}
|
|
|
|
SimilarDocumentsState copyWith({
|
|
bool? hasLoaded,
|
|
bool? isLoading,
|
|
List<PagedSearchResult<DocumentModel>>? value,
|
|
DocumentFilter? filter,
|
|
}) {
|
|
return SimilarDocumentsState(
|
|
hasLoaded: hasLoaded ?? this.hasLoaded,
|
|
isLoading: isLoading ?? this.isLoading,
|
|
value: value ?? this.value,
|
|
filter: filter ?? this.filter,
|
|
);
|
|
}
|
|
}
|