validateNumber method

bool validateNumber()

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

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

Implementation

bool validateNumber() {
  return number != null ? _ccValidator.validateCCNum(number!).isValid : false;
}