copyWith method

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

Implementation

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