natintosh / intl_phone_number_input

MIT License
163 stars 490 forks source link

validator .. needs refactoring #385

Open chickahoona opened 1 year ago

chickahoona commented 1 year ago

I am sorry but this thing needs refactoring:

https://github.com/natintosh/intl_phone_number_input/blob/master/lib/src/widgets/input_widget.dart#L317-L337

So the default validator (presumably) should return null (if the validation passes) or an error message (if the validation fails).