copyWith method

ChatPhoto copyWith({
  1. int? id,
  2. int? addedDate,
  3. Minithumbnail? minithumbnail,
  4. List<PhotoSize>? sizes,
  5. AnimatedChatPhoto? animation,
})

Implementation

ChatPhoto copyWith({
  int? id,
  int? addedDate,
  Minithumbnail? minithumbnail,
  List<PhotoSize>? sizes,
  AnimatedChatPhoto? animation,
}) => ChatPhoto(
  id: id ?? this.id,
  addedDate: addedDate ?? this.addedDate,
  minithumbnail: minithumbnail ?? this.minithumbnail,
  sizes: sizes ?? this.sizes,
  animation: animation ?? this.animation,
);