selectItem method
Selects a specific item and updates the UI label.
Implementation
void selectItem({required SelectPickerItem item}) {
selectedItem = "${showId ? "${item.id} - " : ""}${item.title}";
}
Selects a specific item and updates the UI label.
void selectItem({required SelectPickerItem item}) {
selectedItem = "${showId ? "${item.id} - " : ""}${item.title}";
}