mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-14 20:12:25 -06:00
feat: Add improved date input, fix bugs, restructurings
This commit is contained in:
@@ -1,33 +1,17 @@
|
||||
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;
|
||||
|
||||
class DocumentUploadState {
|
||||
final double? uploadProgress;
|
||||
const DocumentUploadState({
|
||||
this.tags = const {},
|
||||
this.correspondents = const {},
|
||||
this.documentTypes = const {},
|
||||
this.uploadProgress,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props => [
|
||||
tags,
|
||||
correspondents,
|
||||
documentTypes,
|
||||
];
|
||||
|
||||
DocumentUploadState copyWith({
|
||||
Map<int, Tag>? tags,
|
||||
Map<int, Correspondent>? correspondents,
|
||||
Map<int, DocumentType>? documentTypes,
|
||||
double? uploadProgress,
|
||||
}) {
|
||||
return DocumentUploadState(
|
||||
tags: tags ?? this.tags,
|
||||
correspondents: correspondents ?? this.correspondents,
|
||||
documentTypes: documentTypes ?? this.documentTypes,
|
||||
uploadProgress: uploadProgress ?? this.uploadProgress,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user