copyWith method

DocumentMetadata copyWith({
  1. String? name,
  2. String? status,
  3. String? docId,
  4. DocType? docType,
})

Implementation

DocumentMetadata copyWith(
    {String? name, String? status, String? docId, enums.DocType? docType}) {
  return DocumentMetadata(
      name: name ?? this.name,
      status: status ?? this.status,
      docId: docId ?? this.docId,
      docType: docType ?? this.docType);
}