flrx_validator library

Classes

AnyRule<T>
A Rule subclass which validates if any of the list of Rule passed to it are passing.
EachRule<T>
A Rule subclass which runs validation on the list of Rule and does not stop if any of them fail.
EmailRule
A Rule subclass validating if the given input is a valid email.
InRule<T>
A Rule subclass validating if the input is one of the element in the acceptedList.
MaxLengthRule<T extends dynamic>
A Rule subclass validating if the length of input is less than maxLength.
MinLengthRule<T extends dynamic>
A Rule subclass validating if the input length is more than minLength.
NotInRule<T>
A Rule subclass validating if the input is one of the element in the rejectionList.
RegexRule
A Rule subclass validating the input matches a regex.
RequiredRule<T>
A Rule subclass validating if the input is notEmpty. If the Value is null, this rule fails. If the value if of type String and if the String is empty, this rule fails. If the value if of type Iterable or Map and if the value is empty, this rule fails.
Rule<T>
An abstract class designed to use with Validator.
Validator<T>
A class primarily designed to retrieve validation messages based on Rules.

Typedefs

MessageTransformer = String Function(String message, Map<String, String> valueMapping)