requestSuppression method

  1. @override
Future<SuppressionStatus> requestSuppression()
override

Request suppression of the NFC wallet.

Returns a SuppressionStatus indicating the result of the operation.

Implementation

@override
Future<SuppressionStatus> requestSuppression() async {
  methodCalls.add('requestSuppression');
  // Suppression is active only when the request reports success; any other
  // outcome leaves it inactive. Assigning (rather than only setting `true`)
  // prevents a stale `true` from surviving a later failed request.
  _isCurrentlySuppressed = _requestResult == SuppressionStatus.suppressed;
  return _requestResult;
}