copyWith method
Implementation
Photo copyWith({
String? name,
int? widthPx,
int? heightPx,
List<AuthorAttribution>? authorAttributions,
String? flagContentUri,
String? googleMapsUri,
String? photoUri,
}) {
return Photo(
name: name ?? this.name,
widthPx: widthPx ?? this.widthPx,
heightPx: heightPx ?? this.heightPx,
authorAttributions:
((authorAttributions?.isNotEmpty ?? false)
? authorAttributions
: null) ??
this.authorAttributions,
flagContentUri: flagContentUri ?? this.flagContentUri,
googleMapsUri: googleMapsUri ?? this.googleMapsUri,
photoUri: photoUri ?? this.photoUri,
);
}