copyWith method

  1. @override
PublicMediumModel copyWith({
  1. String? documentID,
  2. String? authorId,
  3. String? base,
  4. String? ext,
  5. String? url,
  6. String? ref,
  7. String? urlThumbnail,
  8. String? refThumbnail,
  9. PublicMediumType? mediumType,
  10. int? mediumWidth,
  11. int? mediumHeight,
  12. int? thumbnailWidth,
  13. int? thumbnailHeight,
  14. String? relatedMediumId,
})
override

Implementation

@override
PublicMediumModel copyWith({
  String? documentID,
  String? authorId,
  String? base,
  String? ext,
  String? url,
  String? ref,
  String? urlThumbnail,
  String? refThumbnail,
  PublicMediumType? mediumType,
  int? mediumWidth,
  int? mediumHeight,
  int? thumbnailWidth,
  int? thumbnailHeight,
  String? relatedMediumId,
}) {
  return PublicMediumModel(
    documentID: documentID ?? this.documentID,
    authorId: authorId ?? this.authorId,
    base: base ?? this.base,
    ext: ext ?? this.ext,
    url: url ?? this.url,
    ref: ref ?? this.ref,
    urlThumbnail: urlThumbnail ?? this.urlThumbnail,
    refThumbnail: refThumbnail ?? this.refThumbnail,
    mediumType: mediumType ?? this.mediumType,
    mediumWidth: mediumWidth ?? this.mediumWidth,
    mediumHeight: mediumHeight ?? this.mediumHeight,
    thumbnailWidth: thumbnailWidth ?? this.thumbnailWidth,
    thumbnailHeight: thumbnailHeight ?? this.thumbnailHeight,
    relatedMediumId: relatedMediumId ?? this.relatedMediumId,
  );
}