For 3.xx versions of the JS API, the PortalUser class has the method, getItem(itemId). This method enables a user to get the displayName and type and iconUrl of an item.
What is the equivalent method in the 4.0 version? I see fetchItems(), but that's it.
Ultimately, I am trying to get the displayName and iconUrl property of the item, not just the item's type.
For example, the item here has a displayName Feature Layer, the type is Feature Collection, and the iconUrl is here.
Screenshot from AGOL showing displayName, type, and icon from iconUrl of item: