TTSVoiceInfo constructor

TTSVoiceInfo({
  1. String? id,
  2. String? displayName,
  3. String? languageCode,
  4. TTSVoiceGender? gender,
  5. String? description,
  6. bool? isNeural,
  7. bool? isSystem,
  8. int? sampleRate,
  9. Iterable<String>? supportedStyles,
})

Implementation

factory TTSVoiceInfo({
  $core.String? id,
  $core.String? displayName,
  $core.String? languageCode,
  TTSVoiceGender? gender,
  $core.String? description,
  $core.bool? isNeural,
  $core.bool? isSystem,
  $core.int? sampleRate,
  $core.Iterable<$core.String>? supportedStyles,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (displayName != null) result.displayName = displayName;
  if (languageCode != null) result.languageCode = languageCode;
  if (gender != null) result.gender = gender;
  if (description != null) result.description = description;
  if (isNeural != null) result.isNeural = isNeural;
  if (isSystem != null) result.isSystem = isSystem;
  if (sampleRate != null) result.sampleRate = sampleRate;
  if (supportedStyles != null) result.supportedStyles.addAll(supportedStyles);
  return result;
}