get Refy Item

fun <T : RefyItem> List<T>.getRefyItem(itemId: String?): T?

Function to get from a RefyItem list the item with the corresponding to the identifier pass as parameter

Return

the corresponding item, if exists as T, null if not exists

Parameters

itemId

: the item identifier

T

: the type of the item in the list