onStop property

EventStream<void> get onStop

Fired when a call is made to tts.stop and this extension may be in the middle of speaking. If an extension receives a call to onStop and speech is already stopped, it should do nothing (not raise an error). If speech is in the paused state, this should cancel the paused state.

Implementation

EventStream<void> get onStop =>
    $js.chrome.ttsEngine.onStop.asStream(($c) => () {
          return $c(null);
        });