getItem

fun getItem(position: Int): ViewData?(source)

Retrieves the ViewData associated with the item at the specified position.

This function takes into account headers, footers, and the wrapped adapter's data.

Return

The ViewData at the specified position, or null if the position is out of bounds or if no item exists at that position.

Parameters

position

The position of the item to retrieve.