validatePostalCode function

ValidationResults validatePostalCode(
  1. String postalCode, {
  2. int? minLength,
})

Validates postal codes for credit cards

Reminder: this package does not check with the user's bank or credit card company. Please use a payment processing service like Stripe or Braintree for that. The default minimum postal code string length. Set to 3 Checks if the postal code seems legit

Implementation

/// The default minimum postal code string length. Set to 3
// const int _DEFAULT_MIN_POSTAL_CODE_LENGTH = 3;

/// Checks if the postal code seems legit
ValidationResults validatePostalCode(String postalCode, {int? minLength}) {
  // TODO implement
  throw UnimplementedError();
}