call method

String? call(
  1. String? value
)

Executes the validation function on value.

Returns errorMessage if validation fails, or null if validation passes.

Implementation

String? call(String? value) => validate(value) == null ? null : errorMessage;