copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
LinkPreviewTypeExternalVideo copyWith({
String? url,
String? mimeType,
int? width,
int? height,
int? duration,
}) => LinkPreviewTypeExternalVideo(
url: url ?? this.url,
mimeType: mimeType ?? this.mimeType,
width: width ?? this.width,
height: height ?? this.height,
duration: duration ?? this.duration,
);