cardNumberFilled property
bool
get
cardNumberFilled
Returns true if _cardNumber
is null, or
if the _cardNumber matches the detected provider
's
card lenght, defaulting to 16.
Implementation
bool get cardNumberFilled => _cardNumber == null
? false
: (provider?.cardLength ?? 16) == _cardNumber!.replaceAll(' ', '').length;