onEvent property
EventStream<TtsEvent>
get
onEvent
Used to pass events back to the function calling speak().
Implementation
EventStream<TtsEvent> get onEvent =>
$js.chrome.tts.onEvent.asStream(($c) => ($js.TtsEvent event) {
return $c(TtsEvent.fromJS(event));
});