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
InputVideo copyWith({
InputFile? video,
InputThumbnail? Function()? thumbnail,
InputFile? Function()? cover,
int? startTimestamp,
List<int>? addedStickerFileIds,
int? duration,
int? width,
int? height,
bool? supportsStreaming,
}) => InputVideo(
video: video ?? this.video,
thumbnail: thumbnail != null ? thumbnail() : this.thumbnail,
cover: cover != null ? cover() : this.cover,
startTimestamp: startTimestamp ?? this.startTimestamp,
addedStickerFileIds: addedStickerFileIds ?? this.addedStickerFileIds,
duration: duration ?? this.duration,
width: width ?? this.width,
height: height ?? this.height,
supportsStreaming: supportsStreaming ?? this.supportsStreaming,
);