validator property

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

Used to validate the input's value.

Returned string will be shown as an error message.

Implementation

final String? Function(String? value)? validator;