FunctionRule<T, E> constructor
const
FunctionRule<T, E> ({
- required ValidationResult<
T, E> validator(- T value
Creates a rule from a validator function.
Implementation
const FunctionRule({required this.validator});