validator/base_validator library
Core validator abstractions and base implementations.
Classes
-
IdValidator<
T extends Result> - Base class that adds an identifier to a validator (used by map/field validators).
- IValidator
- Immutable base class from which all validators inherit.
- IWhenValidator
- A special type of validator that can operate on a parent map context.
-
Validator<
T extends Result> - Generic implementation wrapper for a validator.
Typedefs
-
ValidatorFunction<
T extends Result> = FutureOr< T> Function(dynamic value) - Type representing a validator function (may be sync or async).