direct-select-flutter
direct-select-flutter copied to clipboard
Instead of string being an object
Hello, how instead of using a string how do I use an object? For example, create an object with name and value and in the display show item.name but the value will be item.value. Has as?
Hello Didn't get you. Could you be more specific?
He means the value of items is different from the label. For example:
[{value: "dog", name: "Big dog"}, {value: "cat", name: "Smart Cat"} ]