country_mobile_validator 0.2.0 copy "country_mobile_validator: ^0.2.0" to clipboard
country_mobile_validator: ^0.2.0 copied to clipboard

Validate mobile numbers per country using real length ranges (8-10, 10-11 digits), mobile-only detection, and a country_code_picker-friendly API.

0.2.0 #

  • Breaking: renamed the entry class MobileNumberKitCountryMobileValidator (matches the package name; old name is gone everywhere — code, docs, tests, SVG).
  • New: zero-setup top-level API — validateMobile(input, {countryCode}) and a global mobileValidator instance. Unknown countryCode returns an invalid result instead of throwing.
  • README rewritten: shorter, scannable, integration-first.

0.1.1 #

  • Full 160/160 pub.dev score: fixed doc-comment HTML warnings, formatted source, added topics, trimmed description, CHANGELOG entry.
  • MetadataUpdater doc reference now points to loadRefreshedMetadata.

0.1.0 #

  • Initial release.
  • Pure Dart mobile-only validator for 254 regions (libphonenumber metadata, Apache-2.0).
  • Queryable per-country mobile length ranges (AR 10–11, NZ 8–10, …).
  • Mobile / fixed-line / toll-free / premium-rate / shared-cost / short-code type detection; OTP-deliverability verdict.
  • Auto country-code detection with longest-prefix match and multi-region resolution (+1 → US/CA/…, +44 → GB/GG/JE/IM).
  • Input normalization: separators, Unicode digits, extensions, trunk prefixes.
  • Refreshable metadata via MetadataUpdater (SHA-256 verified, offline fallback).
  • Golden corpus test suite over all 247 mobile-enabled regions.
1
likes
160
points
163
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Validate mobile numbers per country using real length ranges (8-10, 10-11 digits), mobile-only detection, and a country_code_picker-friendly API.

Repository (GitHub)
View/report issues

Topics

#mobile #validation #phone-number #country-code #flutter

License

Apache-2.0 (license)

Dependencies

crypto

More

Packages that depend on country_mobile_validator