extra/helper library

Functions

getCardType(String cardNumber) CardType
getCardTypeIcon({CardType? cardType, String? cardNumber, List<CardBrand>? customBrands}) Widget
getCardTypeMask({CardType? cardType, String? cardNumber, List<CardBrand>? customBrands}) String
https://baymard.com/checkout-usability/credit-card-patterns
matchCustomBrand(String? cardNumber, List<CardBrand>? brands) CardBrand?
Returns the first custom brand whose pattern matches cardNumber (spaces ignored), or null when there is no match.