copyWith method
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,
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,
);