getSelectedValues method

List getSelectedValues()

Gets the currently selected values from the picker.

Returns a list containing the actual values (not indices) that are currently selected in each column. The type and format of values depends on the adapter being used.

For PickerDataAdapter: Returns the actual data items For NumberPickerAdapter: Returns the numeric values For DateTimePickerAdapter: Returns DateTime components

Example:

final values = picker.getSelectedValues();
print('Selected: $values'); // e.g., ['Apple', 'Red']

Implementation

List getSelectedValues() {
  return adapter.getSelectedValues();
}