VoiceAgentComponentStates constructor

VoiceAgentComponentStates({
  1. ComponentLifecycleState? sttState,
  2. ComponentLifecycleState? llmState,
  3. ComponentLifecycleState? ttsState,
  4. ComponentLifecycleState? vadState,
  5. bool? ready,
  6. bool? anyLoading,
  7. ComponentLifecycleState? wakewordState,
  8. 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;
}