InputValidator typedef

String InputValidator (
  1. dynamic value
)

Signature for validating a form field.

Returns an error string to display if the input is invalid, or null otherwise.

Used by InputField.validators.

Implementation

typedef InputValidator = String Function(dynamic value);