cancel method

Future<void> cancel()

Cancels an in-flight native transaction.

Implementation

Future<void> cancel() async {
  try {
    await _channel.invokeMethod<void>(
      'nativeCancelTransaction',
    );
  } catch (_) {
    // Best-effort; swallow
  }
}