Open dronzuone opened 1 year ago
Hi would it be possible to add a validator as a nullable type. This would fix the validation issue.
Current implementation: final String Function(T? selectedOptions)? validator;
final String Function(T? selectedOptions)? validator;
Changed to: final String? Function(T? selectedOptions)? validator;
final String? Function(T? selectedOptions)? validator;
Example of using the validator after fix: validator: (value) => value == null ? 'Empty' : null,
validator: (value) => value == null ? 'Empty' : null,
Instead: validator: (value) => value == null ? 'Empty' : '',
validator: (value) => value == null ? 'Empty' : '',
up
Hi would it be possible to add a validator as a nullable type. This would fix the validation issue.
Current implementation:
final String Function(T? selectedOptions)? validator;
Changed to:
final String? Function(T? selectedOptions)? validator;
Example of using the validator after fix:
validator: (value) => value == null ? 'Empty' : null,
Instead:
validator: (value) => value == null ? 'Empty' : '',