copyWith method

  1. @override
PageBlockVoiceNote copyWith({
  1. VoiceNote? voiceNote,
  2. PageBlockCaption? caption,
})
override

Copy model with modified properties.

Properties:

  • voice_note: Voice note; may be null
  • caption: Voice note caption

Implementation

@override
PageBlockVoiceNote copyWith({
  VoiceNote? voiceNote,
  PageBlockCaption? caption,
}) =>
    PageBlockVoiceNote(
      voiceNote: voiceNote ?? this.voiceNote,
      caption: caption ?? this.caption,
    );