copyWith method

VoiceNote copyWith({
  1. int? duration,
  2. String? waveform,
  3. String? mimeType,
  4. File? voice,
})

Implementation

VoiceNote copyWith({
  int? duration,
  String? waveform,
  String? mimeType,
  File? voice,
}) => VoiceNote(
  duration: duration ?? this.duration,
  waveform: waveform ?? this.waveform,
  mimeType: mimeType ?? this.mimeType,
  voice: voice ?? this.voice,
);