copyWith method Null safety

DocumentItemEntity copyWith(
  1. {String? documentID,
  2. String? reference,
  3. String? imageId}
)

Implementation

DocumentItemEntity copyWith({
  String? documentID,
  String? reference,
  String? imageId,
}) {
  return DocumentItemEntity(
    reference: reference ?? this.reference,
    imageId: imageId ?? this.imageId,
  );
}