TTSServiceState constructor

TTSServiceState({
  1. bool? isReady,
  2. String? currentVoice,
  3. Iterable<String>? supportedLanguageCodes,
  4. SDKError? error,
})

Implementation

factory TTSServiceState({
  $core.bool? isReady,
  $core.String? currentVoice,
  $core.Iterable<$core.String>? supportedLanguageCodes,
  $0.SDKError? error,
}) {
  final result = create();
  if (isReady != null) result.isReady = isReady;
  if (currentVoice != null) result.currentVoice = currentVoice;
  if (supportedLanguageCodes != null)
    result.supportedLanguageCodes.addAll(supportedLanguageCodes);
  if (error != null) result.error = error;
  return result;
}