creditValidator static method

bool creditValidator(
  1. String credit
)

Implementation

static bool creditValidator(String credit) {
  //credit card if u wanna
  if (isCreditCard(credit)) {
    return true;
  }
  return false;
}