copyWith method

DraftMessageContentVoiceNote copyWith({
  1. String? filePath,
  2. int? duration,
  3. String? waveform,
  4. MessageSelfDestructType? selfDestructType,
})

Implementation

DraftMessageContentVoiceNote copyWith({
  String? filePath,
  int? duration,
  String? waveform,
  MessageSelfDestructType? selfDestructType,
}) =>
    DraftMessageContentVoiceNote(
      filePath: filePath ?? this.filePath,
      duration: duration ?? this.duration,
      waveform: waveform ?? this.waveform,
      selfDestructType: selfDestructType ?? this.selfDestructType,
    );