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