isPostalCode static method

bool isPostalCode(
  1. String value,
  2. String locale
)

Implementation

static bool isPostalCode(String value, String locale) {
  final pattern = _postalCodePatterns[locale];
  return pattern?.hasMatch(value) ?? false;
}