direct-select-flutter icon indicating copy to clipboard operation
direct-select-flutter copied to clipboard

Instead of string being an object

Open fabioselau077 opened this issue 4 years ago • 2 comments

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?

fabioselau077 avatar May 22 '21 00:05 fabioselau077

Hello Didn't get you. Could you be more specific?

vizhan-lanars avatar May 28 '21 20:05 vizhan-lanars

He means the value of items is different from the label. For example: [{value: "dog", name: "Big dog"}, {value: "cat", name: "Smart Cat"} ]

ngoctai avatar Jun 13 '23 08:06 ngoctai