copyWith method

MessageVoiceNote copyWith({
  1. VoiceNote? voiceNote,
  2. FormattedText? caption,
  3. bool? isListened,
})

Implementation

MessageVoiceNote copyWith({
  VoiceNote? voiceNote,
  FormattedText? caption,
  bool? isListened,
}) => MessageVoiceNote(
  voiceNote: voiceNote ?? this.voiceNote,
  caption: caption ?? this.caption,
  isListened: isListened ?? this.isListened,
);