isCardCvvBool static method

bool isCardCvvBool(
  1. String? value
)

Implementation

static bool isCardCvvBool(String? value) {
  final inputValue = value ?? "";
  final regex = RegExp(r'^(?!0{3,4}$)\d{3,4}$');
  return regex.hasMatch(inputValue);
}