srtraj / dropdown_textfield

custom dropdown
MIT License
9 stars 49 forks source link

Is it possible to have a generica class dropdown value instead of a string-only dropdown value? #25

Closed gfb-47 closed 1 year ago

gfb-47 commented 1 year ago

I just wonder if it's possible because I couldn't manage to do that, and if it's not is it possible to have generics on the package?

srtraj commented 1 year ago

DropDownValueModel(name: 'name', value: [value1,value2]), you can assign any type of value to the value but name should be string type .