copyWith method

InputVideoNote copyWith({
  1. InputFile? videoNote,
  2. InputThumbnail? thumbnail()?,
  3. int? duration,
  4. int? length,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

InputVideoNote copyWith({
  InputFile? videoNote,
  InputThumbnail? Function()? thumbnail,
  int? duration,
  int? length,
}) => InputVideoNote(
  videoNote: videoNote ?? this.videoNote,
  thumbnail: thumbnail != null ? thumbnail() : this.thumbnail,
  duration: duration ?? this.duration,
  length: length ?? this.length,
);