part of 'document_edit_cubit.dart'; class DocumentEditState extends Equatable { final DocumentModel document; final Map correspondents; final Map documentTypes; final Map storagePaths; final Map tags; const DocumentEditState({ required this.correspondents, required this.documentTypes, required this.storagePaths, required this.tags, required this.document, }); @override List get props => [ correspondents, documentTypes, storagePaths, tags, document, ]; DocumentEditState copyWith({ Map? correspondents, Map? documentTypes, Map? storagePaths, Map? tags, DocumentModel? document, }) { return DocumentEditState( document: document ?? this.document, correspondents: correspondents ?? this.correspondents, documentTypes: documentTypes ?? this.documentTypes, storagePaths: storagePaths ?? this.storagePaths, tags: tags ?? this.tags, ); } }