copyWith method

  1. @override
InputPaidMediaTypeVideo copyWith({
  1. InputFile? cover()?,
  2. int? startTimestamp,
  3. int? duration,
  4. bool? supportsStreaming,
})
override

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