MicOptions class

Constructors

MicOptions({Duration? listenFor, Duration? pauseFor, int? maximumWordsLimit, Widget? micIcon, Widget? micIconDenied, Widget? micIconOff, Widget? micIconOn, bool? partialResults, String? localeId})

Properties

hashCode int
The hash code for this object.
no setterinherited
listenFor Duration?
listenFor sets the maximum duration that it will listen for, after that it automatically stops the listen for you.
getter/setter pair
localeId String?
localeId is an optional locale that can be used to listen in a language other than the current system default. See locales to find the list of supported languages for listening
getter/setter pair
maximumWordsLimit int?
The maximum number of allowed words in speech. Mic would automatically stop once it hit the maximum word limit.
getter/setter pair
micIcon Widget?
Allows to custom the micIcon at the right side.
getter/setter pair
micIconDenied Widget?
To use a custom mic icon if the permission is denied.
getter/setter pair
micIconOff Widget?
Customize mic icon when speech recognition failed or user didn't speak.
getter/setter pair
micIconOn Widget?
To use a custom mic icon when mic is in listening state.
getter/setter pair
partialResults bool?
partialResults if true the listen reports results as they are recognized, when false only final results are reported. Defaults to true.
getter/setter pair
pauseFor Duration?
pauseFor sets the maximum duration of a pause in speech with no words detected, after that it automatically stops the listen for you.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited