dispose method

void dispose()

Closes the underlying streams and objects. Calls the dispose method on the native code as well.

Implementation

void dispose() async {
  onConnected = null;
  onDisconnected = null;
  onError = null;
  _augnitoWebClient.close();
  await _augnitoAudioStream.stopListening();
  _augnitoAudioStream.dispose();
}