Dropdown Impl
The implementation of the dropdown.
Parameters
The item of the current option.
The size of the options.
Whether the option is selected.
The index of the current option in the options.
The DropdownColors used to style the option row.
Whether the option is clickable. Disabled rows ignore clicks and use the disabled text color.
Whether the item is shown in dialog mode.
When true, this row acts as a submenu trigger: a trailing chevron is shown instead of the selection check, and the row's accessibility role becomes Role.Button.
Whether this row is the first row of the entire popup. Controls the larger top padding in popup mode. Defaults to index == 0; multi-entry callers should pass the popup-global flag so only the actual first row gets extra padding.
Whether this row is the last row of the entire popup. Controls the larger bottom padding in popup mode. Defaults to index == optionSize - 1; multi-entry callers should pass the popup-global flag.
The callback invoked with index when the option is selected.