cancelTransaction abstract method

Future<void> cancelTransaction(
  1. String transactionId
)

Cancels transaction's return, resulting in BleError with BleError.errorCode set to BleErrorCode.operationCancelled being returned from transaction's Future.

The operation might be cancelled if it hadn't yet started or be run normally, eg. writing to characteristic, but you can dismiss awaiting for the result if, for example, the result is no longer useful due to user's actions.

Implementation

Future<void> cancelTransaction(String transactionId);