NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #3685 most downloaded on pub.dev
A Dart/Flutter package for building strongly typed validation rules inspired by FluentValidation and created by the Flutterando community.
Last release 4 months ago
09 Jun 2026
Ships unpredictably
gaps range from 2 weeks to 1.2 years
Most releases are documented
notes for 18 of 21 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
21 releases · first in 2024
Added ValidationResult helpers: errorsByKey (errors grouped by field) and firstErrorFor(key) .
ValidationResult helpers: errorsByKey (errors grouped by field) and firstErrorFor(key).validateAndThrow / validateAndThrowAsync, throwing a LucidValidationException with all failures.inclusiveBetween / exclusiveBetween validators (previously only available for DateTime).validUrl, length(min, max), isInEnum and precisionScale validators (each with an OrNull variant).withMessage, withErrorCode and withName for fluent, chained customization of the previous rule.mustAsync, mustWithAsync, useAsync and LucidValidator.validateAsync.ruleForEach to validate each item of a collection inline (without a dedicated validator class).ruleSet(name, () {...}) and validate(entity, ruleSets: [...]).include to compose/reuse validators of the same entity type.unless (the inverse of when); when and unless now compose.normalize to sanitize a value before validation (e.g. trim/lowercase) without mutating the entity.switchOn for polymorphic/branching validations based on discriminator values (e.g. enums, Strings, ints).LucidValidator.inline factory constructor to build validators on the fly without subclassing.rulesForField and rulesForFieldAsync to evaluate and inspect the status of all rules on a specific field (e.g. for password checklist widgets).getExceptions and getExceptionsByKey to directly retrieve raw lists of validation exceptions.use and useAsync builders to manually construct custom rules with full control over the created ValidationException.One column per month.
Added nullable support for phone number validation
Added support for list validation using setEach , allowing nested validators with index-aware error reporting.
setEach, allowing nested validators with index-aware error reporting.Full Changelog: v1.2.7...v1.3.0
Aded hasNoSequentialRepeatedCharacters and hasNoSequentialCharacters
Full Changelog: v1.2.5...v1.2.7
docs: update README for English localization instructions by @andre-morpanini-maersk in #4
Full Changelog: v1.2.4...v1.2.5
Fix overrideCallback in byField
Added overrideCallback in byField
* Added validCPFOrCNPJ
Added getExceptions and getExceptionsByKey
[DRAFT] feature: initial proposal of 'is not null' by @wellgenio in #3
Full Changelog: v1.1.0...v1.2.0
* Added Label
Added valid greaterThanOrEqualTo, greaterThan, lessThanOrEqualTo, lessThan, inclusiveBetween and exclusiveBetween
* Production release
* Added when and setValidator
when and setValidatorNothing published for this version
* Added must and mustWith
Nothing published for this version
* Added Cascade Mode
Added valid CEP, CNPJ and CreditCard
* Initial Release
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →