isValidCardNumber method

bool isValidCardNumber({
  1. bool checkLength = false,
  2. bool useLuhnAlgo = true,
})

Implementation

bool isValidCardNumber({
  bool checkLength = false,
  bool useLuhnAlgo = true,
}) {
  return isCardNumberValid(
    cardNumber: this,
    useLuhnAlgo: useLuhnAlgo,
    checkLength: checkLength,
  );
}