cancelTransaction method

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

Cancel the in-progress transaction. Emits a cancelled event and causes the startTransaction future to complete with a TransactionResultStatus.cancelled result.

Implementation

@override
Future<void> cancelTransaction() async {
  await _invoke<Object?>(MobileReaderChannels.cancelTransaction, null);
}