copyWith method

EntityDocument copyWith({
  1. EntityDocumentType? type,
  2. String? number,
})

Implementation

EntityDocument copyWith({enums.EntityDocumentType? type, String? number}) {
  return EntityDocument(
      type: type ?? this.type, number: number ?? this.number);
}