QueryInput constructor

QueryInput(
  1. {InputAudioConfig audioConfig,
  2. TextInput text,
  3. EventInput event}
)

Implementation

QueryInput({
  this.audioConfig,
  this.text,
  this.event,
}) {
  assert(
      (audioConfig != null && text == null && event == null) ||
          (audioConfig == null && text != null && event == null) ||
          (audioConfig == null && text == null && event != null) ||
          (audioConfig == null && text == null && event == null),
      'Input can be only one of the following: audioConfig, text or event.');
}