copyWith method

  1. @override
MessageAudio copyWith({
  1. Audio? audio,
  2. FormattedText? caption,
})
override

Implementation

@override
MessageAudio copyWith({
  Audio? audio,
  FormattedText? caption,
}) => MessageAudio(
  audio: audio ?? this.audio,
  caption: caption ?? this.caption,
);