VoiceSearchController constructor

VoiceSearchController({
  1. String? localeId,
  2. void onResult(
    1. String text,
    2. bool isFinal
    )?,
  3. void onError(
    1. String error
    )?,
  4. Duration listenFor = const Duration(seconds: 30),
  5. Duration pauseFor = const Duration(seconds: 3),
})

Implementation

VoiceSearchController({
  this.localeId,
  this.onResult,
  this.onError,
  this.listenFor = const Duration(seconds: 30),
  this.pauseFor = const Duration(seconds: 3),
});