addCard static method

void addCard(
  1. String userId,
  2. String cardId,
  3. String cardHolderName,
  4. String localizedDescription,
  5. String cardPanSuffix,
  6. [String? pan,
  7. String? expiryDate]
)

Implementation

static void addCard(String userId, String cardId, String cardHolderName,
    String localizedDescription, String cardPanSuffix,
    [String? pan, String? expiryDate]) {
  _eventChannel.receiveBroadcastStream().listen(_onEvent, onError: _onError);

  if (pan != null && expiryDate != null) {
    _methodChannel.invokeMethod(
        'addCardForUserIdCardIdCardHolderNameCardPanSuffixLocalizedDescriptionPanExpiryDate',
        [
          userId,
          cardId,
          cardHolderName,
          cardPanSuffix,
          localizedDescription,
          pan,
          expiryDate
        ]);
  } else {
    _methodChannel.invokeMethod(
        'addCardForUserIdCardIdCardHolderNameCardPanSuffixLocalizedDescription',
        [
          userId,
          cardId,
          cardHolderName,
          cardPanSuffix,
          localizedDescription
        ]);
  }
}