dynamic

fun dynamic(index: Int, listSize: Int): EventPosition

Determines the event position dynamically based on the index and the size of the list.

Return

EventPosition corresponding to the index in the list.

Parameters

index

The index of the item in the list.

listSize

The total size of the list.