log<T> static method
FormFieldValidator that logs the value at a specific point in the validation chain. This validator logs the value being validated and always returns null.
Parameters:
log
The log message to display.errorText
The error message when the value is invalid.
Implementation
static FormFieldValidator<T> log<T>({
String Function(T? value)? log,
String? errorText,
}) => LogValidator<T>(log: log, errorText: errorText).validate;