copyWith method

SimilarVoice copyWith({
  1. String? voiceId,
  2. String? name,
  3. SimilarVoiceCategory? category,
  4. dynamic description,
  5. dynamic previewUrl,
})

Implementation

SimilarVoice copyWith(
    {String? voiceId,
    String? name,
    enums.SimilarVoiceCategory? category,
    dynamic description,
    dynamic previewUrl}) {
  return SimilarVoice(
      voiceId: voiceId ?? this.voiceId,
      name: name ?? this.name,
      category: category ?? this.category,
      description: description ?? this.description,
      previewUrl: previewUrl ?? this.previewUrl);
}