StreamingRecognitionConfig constructor Null safety

StreamingRecognitionConfig(
  1. {required RecognitionConfig config,
  2. bool singleUtterance = false,
  3. bool interimResults = false}
)

A streaming speech recognition result corresponding to a portion of the audio that is currently being processed.

Implementation

StreamingRecognitionConfig({
  required this.config,
  this.singleUtterance = false,
  this.interimResults = false,
})  : assert(singleUtterance != null),
      assert(interimResults != null);