copyWith method

InputAudio copyWith({
  1. InputFile? audio,
  2. InputThumbnail? albumCoverThumbnail()?,
  3. int? duration,
  4. String? title,
  5. String? performer,
})

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

Implementation

InputAudio copyWith({
  InputFile? audio,
  InputThumbnail? Function()? albumCoverThumbnail,
  int? duration,
  String? title,
  String? performer,
}) => InputAudio(
  audio: audio ?? this.audio,
  albumCoverThumbnail: albumCoverThumbnail != null
      ? albumCoverThumbnail()
      : this.albumCoverThumbnail,
  duration: duration ?? this.duration,
  title: title ?? this.title,
  performer: performer ?? this.performer,
);