Skip to main content

gmana_validation 0.0.2 copy "gmana_validation: ^0.0.2" to clipboard
gmana_validation: ^0.0.2 copied to clipboard

Pure Dart typed validators and extensions for common input, identifier, network, and date formats.

0.0.2 - 2026-10-13 #

Added #

  • ==, hashCode, and copyWith on EmailValidationConfig, IdentifierValidationConfig, NetworkValidationConfig, NumberValidationConfig, PhoneValidationConfig, and UrlValidationConfig. gmana_value_objects now uses these classes instead of its own copies.
  • NumberValidationConfig presets naturalNumber, percentage, price, age, and rating.
  • StringValidation (isValidEmail, isValidPassword, passwordStrength, isValidPhone, and the other boolean shortcuts). It moved here from gmana_extensions, which re-exports it.
  • GmanaValidationStringX shortcuts for date, email, identifier, network, number, password, phone, text, and URL validation.
  • GmanaValidationResultX inspection helpers: isValid, isInvalid, issueOrNull, valueOrNull, and messageOrNull.
  • throwaway.email in kDefaultDisposableDomains. It was the one domain in the gmana_value_objects list that this list lacked.
  • A dependency on package:meta, for @immutable.

Changed #

  • NumberValidationConfig.positiveInteger() defaults min to 0 instead of null. Validation results are unchanged, because negatives were already rejected; only config.min reads differently.

0.0.1 #

  • Initial
0
likes
160
points
106
downloads

Documentation

API reference

Publisher

verified publishergmana.co

Weekly Downloads

Pure Dart typed validators and extensions for common input, identifier, network, and date formats.

Repository (GitHub)
View/report issues
Contributing

Topics

#validation #either #form #extensions

License

MIT (license)

Dependencies

gmana_functional, gmana_predicates, meta

More

Packages that depend on gmana_validation