cancelConnection method

Future<void> cancelConnection()

Cancels the connection. Same as disconnect but also makes sure the EmpaStatus DISCONNECTED is sent on the Status stream.

Implementation

Future<void> cancelConnection() async {
  await _methodChannel.invokeMethod('cancelConnection');
}