DetectionCallback typedef
DetectionCallback =
void Function(String phrase)
A callback signature for when a keyword phrase
is detected.
This is typically used to trigger UI updates or other application logic.
Implementation
typedef DetectionCallback = void Function(String phrase);