create
fun create(visibleSuggestions: List<SwingShellSuggestion>, selectedIndex: Int, viewportStartIndex: Int, totalSuggestionCount: Int): SwingShellSuggestionViewSnapshot
Creates a validated immutable suggestion viewport.
Return
a defensive immutable viewport snapshot.
Parameters
visibleSuggestions
bounded ordered suggestion window.
selectedIndex
selected local index, or -1.
viewportStartIndex
absolute rank of the first visible item.
totalSuggestionCount
total retained ranked suggestions.