copyWith method

LinkPreviewTypeEmbeddedVideoPlayer copyWith({
  1. String? url,
  2. Video? video,
  3. Photo? thumbnail,
  4. int? duration,
  5. int? width,
  6. int? height,
})

Implementation

LinkPreviewTypeEmbeddedVideoPlayer copyWith({
  String? url,
  Video? video,
  Photo? thumbnail,
  int? duration,
  int? width,
  int? height,
}) =>
    LinkPreviewTypeEmbeddedVideoPlayer(
      url: url ?? this.url,
      video: video ?? this.video,
      thumbnail: thumbnail ?? this.thumbnail,
      duration: duration ?? this.duration,
      width: width ?? this.width,
      height: height ?? this.height,
    );