validator property

(String? Function(String?)?) validator
final

The validator passed to the input. Should return the error message to be displayed below the input. Should return null if there is no error.

Implementation

final String? Function(String?)? validator;