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. String? errorMessage,
})

Implementation

factory VoiceAgentComponentStates({
  $0.ComponentLifecycleState? sttState,
  $0.ComponentLifecycleState? llmState,
  $0.ComponentLifecycleState? ttsState,
  $0.ComponentLifecycleState? vadState,
  $core.bool? ready,
  $core.bool? anyLoading,
  $0.ComponentLifecycleState? wakewordState,
  $core.String? errorMessage,
}) {
  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 (errorMessage != null) result.errorMessage = errorMessage;
  return result;
}