addCard static method
void
addCard(])
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
]);
}
}