copyWith method

WebPage copyWith({
  1. String? url,
  2. String? displayUrl,
  3. String? type,
  4. String? siteName,
  5. String? title,
  6. FormattedText? description,
  7. Photo? photo,
  8. String? embedUrl,
  9. String? embedType,
  10. int? embedWidth,
  11. int? embedHeight,
  12. int? duration,
  13. String? author,
  14. Animation? animation,
  15. Audio? audio,
  16. Document? document,
  17. Sticker? sticker,
  18. Video? video,
  19. VideoNote? videoNote,
  20. VoiceNote? voiceNote,
  21. int? instantViewVersion,
  22. dynamic extra,
  23. int? clientId,
})

Implementation

WebPage copyWith({
  String? url,
  String? displayUrl,
  String? type,
  String? siteName,
  String? title,
  FormattedText? description,
  Photo? photo,
  String? embedUrl,
  String? embedType,
  int? embedWidth,
  int? embedHeight,
  int? duration,
  String? author,
  Animation? animation,
  Audio? audio,
  Document? document,
  Sticker? sticker,
  Video? video,
  VideoNote? videoNote,
  VoiceNote? voiceNote,
  int? instantViewVersion,
  dynamic extra,
  int? clientId,
}) => WebPage(
  url: url ?? this.url,
  displayUrl: displayUrl ?? this.displayUrl,
  type: type ?? this.type,
  siteName: siteName ?? this.siteName,
  title: title ?? this.title,
  description: description ?? this.description,
  photo: photo ?? this.photo,
  embedUrl: embedUrl ?? this.embedUrl,
  embedType: embedType ?? this.embedType,
  embedWidth: embedWidth ?? this.embedWidth,
  embedHeight: embedHeight ?? this.embedHeight,
  duration: duration ?? this.duration,
  author: author ?? this.author,
  animation: animation ?? this.animation,
  audio: audio ?? this.audio,
  document: document ?? this.document,
  sticker: sticker ?? this.sticker,
  video: video ?? this.video,
  videoNote: videoNote ?? this.videoNote,
  voiceNote: voiceNote ?? this.voiceNote,
  instantViewVersion: instantViewVersion ?? this.instantViewVersion,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);