validator property Null safety

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

validator of the textfield (e) { if(e == null) return 'Field can't be blank' }

Implementation

final String? Function(String?)? validator;