validator property

String? Function(T?)? validator
final

A method that validates the selected item. Returns an error string to display as per the validation, or null otherwise.

Implementation

final String? Function(T?)? validator;