OnErrorOccurred typedef
OnErrorOccurred =
void Function(String error)
Callback function called when an error occurs during voice input processing.
error contains the error message describing what went wrong.
Implementation
typedef OnErrorOccurred = void Function(String error);