validateCVV static method
Implementation
static String? validateCVV(String? value) {
if (value == null || value.isEmpty) {
return Strings.cantBeEmpty;
}
if (value.length < 3 || value.length > 4) {
return "CVV is invalid";
}
return null;
}