VoiceAgentComponentStates constructor
VoiceAgentComponentStates({
- ComponentLifecycleState? sttState,
- ComponentLifecycleState? llmState,
- ComponentLifecycleState? ttsState,
- ComponentLifecycleState? vadState,
- bool? ready,
- bool? anyLoading,
- ComponentLifecycleState? wakewordState,
- SDKError? error,
Implementation
factory VoiceAgentComponentStates({
$1.ComponentLifecycleState? sttState,
$1.ComponentLifecycleState? llmState,
$1.ComponentLifecycleState? ttsState,
$1.ComponentLifecycleState? vadState,
$core.bool? ready,
$core.bool? anyLoading,
$1.ComponentLifecycleState? wakewordState,
$0.SDKError? error,
}) {
final result = create();
if (sttState != null) result.sttState = sttState;
if (llmState != null) result.llmState = llmState;
if (ttsState != null) result.ttsState = ttsState;
if (vadState != null) result.vadState = vadState;
if (ready != null) result.ready = ready;
if (anyLoading != null) result.anyLoading = anyLoading;
if (wakewordState != null) result.wakewordState = wakewordState;
if (error != null) result.error = error;
return result;
}