validators library

This library exports various form validators.

Classes

BoolMust
A Validator that validates a bool field. It provides numerous constraints that can be imposed on the bool field.
NumberMust
A Validator that validates a number field. This includes:
StringMust
A Validator that validates a String field. It provides numerous constraints that can be imposed on the String field.
Validator<T>
Validates a given value. Custom validators should implement this class so that they can interface with Former internals.

Typedefs

ValidatorFunc<T> = String Function(T? value)
A function that validates value and returns error message if any, or an empty string.