validateCVC method

bool validateCVC()

Checks whether or not the {@link #cvc} field is valid.

@return {@code true} if valid, {@code false} otherwise

Implementation

bool validateCVC() {
  if (cvc == null) return false;
  return _ccValidator.validateCVV(cvc!, _ccValidator.validateCCNum(number!).ccType).isValid;
}