copyWithWrapped method

DocumentMetadata copyWithWrapped({
  1. Wrapped<String?>? name,
  2. Wrapped<String?>? status,
  3. Wrapped<String?>? docId,
  4. Wrapped<DocType?>? docType,
})

Implementation

DocumentMetadata copyWithWrapped(
    {Wrapped<String?>? name,
    Wrapped<String?>? status,
    Wrapped<String?>? docId,
    Wrapped<enums.DocType?>? docType}) {
  return DocumentMetadata(
      name: (name != null ? name.value : this.name),
      status: (status != null ? status.value : this.status),
      docId: (docId != null ? docId.value : this.docId),
      docType: (docType != null ? docType.value : this.docType));
}