FunctionRule<T, E> constructor

const FunctionRule<T, E>({
  1. required ValidationResult<T, E> validator(
    1. T value
    ),
})

Creates a rule from a validator function.

Implementation

const FunctionRule({required this.validator});