copyWith method Null safety

SpeechPackage copyWith(
  1. {String? id,
  2. String? name,
  3. String? lang,
  4. String? url,
  5. String? version,
  6. List<SpeechCondition>? conditions}
)
inherited

Implementation

SpeechPackage copyWith(
    {String? id,
    String? name,
    String? lang,
    String? url,
    String? version,
    List<SpeechCondition>? conditions}) {
  return SpeechPackage(
    id: id ?? this.id,
    name: name ?? this.name,
    lang: lang ?? this.lang,
    url: url ?? this.url,
    version: version ?? this.version,
    conditions: conditions ?? this.conditions,
  );
}