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
InputPaidMediaTypeVideo copyWith({
InputFile? Function()? cover,
int? startTimestamp,
int? duration,
bool? supportsStreaming,
}) => InputPaidMediaTypeVideo(
cover: cover != null ? cover() : this.cover,
startTimestamp: startTimestamp ?? this.startTimestamp,
duration: duration ?? this.duration,
supportsStreaming: supportsStreaming ?? this.supportsStreaming,
);