stop method

Future<void> stop()

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

Future<void> stop() async {
  _userEnded = true;
  return _stop();
}