SpeechListenOptions class

Options for the listen method. Previously options were provided as separate parameters to listen however as the number of options grew this became unwieldy. The options are now provided as a single object with named parameters. The old style is still supported but deprecated. If both are used the old style arguments are ignored.

Constructors

SpeechListenOptions({dynamic cancelOnError = false, dynamic partialResults = true, dynamic onDevice = false, ListenMode listenMode = ListenMode.confirmation, dynamic sampleRate = 0, dynamic autoPunctuation = false, dynamic enableHapticFeedback = false})

Properties

autoPunctuation → dynamic
final
cancelOnError → dynamic
final
enableHapticFeedback → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
listenMode ListenMode
final
onDevice → dynamic
final
partialResults → dynamic
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate → dynamic
final

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