getItem

open fun getItem(position: <Error class: unknown class>): <Error class: unknown class>?

Get the item at @position.

If @position is greater than the number of items in @list, null is returned.

null is never returned for an index that is smaller than the length of the list.

This function is meant to be used by language bindings in place of g_list_model_get_item().

See also: g_list_model_get_n_items()

Return

the object at @position.

Since

2.44

Parameters

position

the position of the item to fetch