copyWith method

Photo copyWith({
  1. int? height,
  2. List<String>? htmlAttributions,
  3. String? photoReference,
  4. int? width,
})

Implementation

Photo copyWith({
  int? height,
  List<String>? htmlAttributions,
  String? photoReference,
  int? width,
}) {
  return Photo(
    height: height ?? this.height,
    htmlAttributions: htmlAttributions ?? this.htmlAttributions,
    photoReference: photoReference ?? this.photoReference,
    width: width ?? this.width,
  );
}