stop method

  1. @override
Future<void> stop()
override

Stops the current listen for speech if active, does nothing if not.

Stopping a listen session will cause a final result to be sent. Each listen session should be ended with either stop or cancel, for example in the dispose method of a Widget. cancel is automatically invoked by a permanent error if cancelOnError is set to true in the listen call.

Note: Cannot be used until a successful initialize call. Should only be used after a successful listen call.

Implementation

@override
Future<void> stop() async {
  if (null == _webSpeech) return;
  _webSpeech!.stop();
}