mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-06 15:15:50 -06:00
34 lines
814 B
Dart
34 lines
814 B
Dart
part of 'document_upload_cubit.dart';
|
|
|
|
@immutable
|
|
class DocumentUploadState extends Equatable {
|
|
final Map<int, Tag> tags;
|
|
final Map<int, Correspondent> correspondents;
|
|
final Map<int, DocumentType> documentTypes;
|
|
|
|
const DocumentUploadState({
|
|
this.tags = const {},
|
|
this.correspondents = const {},
|
|
this.documentTypes = const {},
|
|
});
|
|
|
|
@override
|
|
List<Object> get props => [
|
|
tags,
|
|
correspondents,
|
|
documentTypes,
|
|
];
|
|
|
|
DocumentUploadState copyWith({
|
|
Map<int, Tag>? tags,
|
|
Map<int, Correspondent>? correspondents,
|
|
Map<int, DocumentType>? documentTypes,
|
|
}) {
|
|
return DocumentUploadState(
|
|
tags: tags ?? this.tags,
|
|
correspondents: correspondents ?? this.correspondents,
|
|
documentTypes: documentTypes ?? this.documentTypes,
|
|
);
|
|
}
|
|
}
|