log<T> static method

FormFieldValidator<T> log<T>({
  1. String log(
    1. T? value
    )?,
  2. String? errorText,
})

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;