Hello.
I have been working on the creation of dynamic input select, which is populated dynamically from an Enum.
The problem is the function type doesn't accept dynamic only specific enums, which is a problem I'm very object-oriented. I don't see value in creating 100 functions for each specific input.
How to force the function to accept a dynamic enum, rather than a specific one, I'm solving the way to populate any input with data from a list dynamically, as this custom widget, can be used several times on a single form to display different information.
List<String> parseEnumToList(List<dyamic> data) {
/// MODIFY CODE ONLY BELOW THIS LINE
return ['test', 'test'];/// MODIFY CODE ONLY ABOVE THIS LINE}