cvvValidator static method
- String? value
Implementation
static String? cvvValidator(String? value) {
if (value == null || value.isEmpty) {
return "cvv cannot be empty ";
}
if (value.length != 3) {
return "cvv must be exactly 3 characters long";
}
return null;
}