onCardChanged method
void
onCardChanged(
- CardElementChangeEvent response
Implementation
void onCardChanged(js.CardElementChangeEvent response) {
final value = response.value;
final postalCode = value?.postalCode;
final details = CardFieldInputDetails(
complete: response.complete,
brand: response.brand,
postalCode: postalCode,
);
widget.onCardChanged?.call(details);
updateCardDetails(details, controller);
return;
}