copyWith method
PublicMediumEntity
copyWith(
{ - String? documentID,
- String? authorId,
- String? base,
- String? ext,
- String? url,
- String? ref,
- String? urlThumbnail,
- String? refThumbnail,
- int? mediumType,
- int? mediumWidth,
- int? mediumHeight,
- int? thumbnailWidth,
- int? thumbnailHeight,
- String? relatedMediumId,
})
Implementation
PublicMediumEntity copyWith({
String? documentID,
String? authorId,
String? base,
String? ext,
String? url,
String? ref,
String? urlThumbnail,
String? refThumbnail,
int? mediumType,
int? mediumWidth,
int? mediumHeight,
int? thumbnailWidth,
int? thumbnailHeight,
String? relatedMediumId,
}) {
return PublicMediumEntity(
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,
);
}