Environment
Package version: 18.1.1
Description
I would like to pass some extra info to my Validator class function to validate based on something. It could be basic Map<String, dynamic>
Use case:
I have validator on my DTO that was generated with https://github.com/artflutter/reactive_forms_generator. The validator checks if value is valid string number or time, based on the entity type. Right now theres no sane way for me to pass extra information to that validator. I cannot just swap validators, because I would need to generate more DTOs, for each use case, and thats a lot of bloat.
I considered creating hidden dummy input control and pre-fill it with the type, and access that from my validator. Too hacky for my liking
Environment
Package version: 18.1.1
Description
I would like to pass some extra info to my Validator class function to validate based on something. It could be basic Map<String, dynamic>
Use case:
I have validator on my DTO that was generated with https://github.com/artflutter/reactive_forms_generator. The validator checks if value is valid string number or time, based on the entity type. Right now theres no sane way for me to pass extra information to that validator. I cannot just swap validators, because I would need to generate more DTOs, for each use case, and thats a lot of bloat.
I considered creating hidden dummy input control and pre-fill it with the type, and access that from my validator. Too hacky for my liking