selectedItemsIndices property
Indices of selected items in the current menu (null when not applicable).
This enables renderer variants that need a set-like selection signal (e.g. multi-select menus with checkboxes) without making the renderer generic.
For single-select dropdowns this is typically left null.
Implementation
final Set<int>? selectedItemsIndices;