flutter-form-builder-ecosystem / form_builder_validators

Form Builder Validators is set of validators for FormFields. It provides common validators and a way to reuse multiple validators
https://pub.dev/packages/form_builder_validators
BSD 3-Clause "New" or "Revised" License
52 stars 98 forks source link

General: Review core validators and extension method validators (duplicated behaviour) #131

Open deandreamatias opened 3 months ago

deandreamatias commented 3 months ago

Is there an existing issue for this?

Package/Plugin version

11.0.0

What you'd like to happen

I think that some core validators could be accomplish with extension methods and viceversa. Maybe can remove some of them.

Alternatives you've considered

Example: skipWhen
I understand that `FormBuilderValidators.skipWhen(validator: FormBuilderValidators.numeric(), condition: (int? value) => value == 0)` is the same that `FormBuilderValidators.numeric().skipWhen(condition: (int? value) => value == 0)`

Aditional information

No response