validator property

(bool Function(String)?) validator
final

The function that runs with the value after the user has entered the input. If the function throw a ValidationError instead of returning true, the error will be shown and a new input will be asked.

Implementation

final bool Function(String)? validator;