Skip to main content

bd_phone_validator 1.1.0 copy "bd_phone_validator: ^1.1.0" to clipboard
bd_phone_validator: ^1.1.0 copied to clipboard

Validate, normalize, format and detect the operator (Grameenphone, Robi, Banglalink, Teletalk, Airtel) of Bangladeshi mobile numbers. Pure Dart, zero dependencies.

1.1.0 #

  • Pure Dart: removed the unnecessary flutter SDK dependency. Now usable in server and CLI projects. Minimum SDK is Dart 3.0.
  • Added BdOperator enum and BdPhoneValidator.detectOperator.
  • Added BdPhone value object via BdPhoneValidator.tryParse (national, e164, operator, formatted, masked).
  • Added normalize and toE164.
  • Added lenient parsing (strict: false): spaces, -, ., parentheses, 0088 prefix and Bangla digits.
  • Added BdPhoneValidator.formValidator for TextFormField.
  • validate is unchanged by default (strict), fully backward compatible.
  • Removed leftover template class Awesome.
  • Added CI, automated publishing workflow, Dependabot, topics, new README, dartdoc and more tests.

1.0.3 #

  • Documentation and test improvements.

1.0.2 #

  • Optimized regex, added unit tests, updated docs.

1.0.1 #

  • Fixed incorrect regex syntax.

1.0.0 #

  • Initial release.
3
likes
160
points
134
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Validate, normalize, format and detect the operator (Grameenphone, Robi, Banglalink, Teletalk, Airtel) of Bangladeshi mobile numbers. Pure Dart, zero dependencies.

Repository (GitHub)
View/report issues
Contributing

Topics

#bangladesh #phone #validator #validation

License

MIT (license)

More

Packages that depend on bd_phone_validator