Validates if the given string is a valid credit card number.
static bool isValidCreditCard(String number) { final regex = RegExp(r'^[0-9]{13,19}\$'); return regex.hasMatch(number); }