creditCard static method

String? creditCard(
  1. String? value, {
  2. String? message,
})

Checks if the value is a valid credit card number.

Implementation

static String? creditCard(String? value, {String? message}) =>
    value == null || value.isEmpty || validations.isCreditCard(value) ? null : message ?? 'Please enter a valid credit card number';