getItemByClass method

NUIListItem getItemByClass(
  1. Type entityClass
)

Implementation

NUIListItem getItemByClass(Type entityClass){
  NUIListItem? item = _cacheMap[entityClass.toString()];
  if(item == null){
    //Not in cache yet, so get from the whole list
    item = _repo[entityClass.toString()];
    _cacheMap[entityClass.toString()] = item!;
  }
  return item;
}