TTSServiceState constructor
TTSServiceState({})
Implementation
factory TTSServiceState({
$core.bool? isReady,
$core.String? currentVoice,
$core.Iterable<TTSVoiceInfo>? voices,
$core.Iterable<$core.String>? supportedLanguageCodes,
$core.String? errorMessage,
$core.int? errorCode,
}) {
final result = create();
if (isReady != null) result.isReady = isReady;
if (currentVoice != null) result.currentVoice = currentVoice;
if (voices != null) result.voices.addAll(voices);
if (supportedLanguageCodes != null)
result.supportedLanguageCodes.addAll(supportedLanguageCodes);
if (errorMessage != null) result.errorMessage = errorMessage;
if (errorCode != null) result.errorCode = errorCode;
return result;
}