Validator<T> typedef

Validator<T> = String? Function(T value)

A function that validates a value and returns an error message or null.

Implementation

typedef Validator<T> = String? Function(T value);