PortalItem.withPortalAndType constructor

PortalItem.withPortalAndType({
  1. required Portal portal,
  2. required PortalItemType type,
})

Creates a new portal item with the specified type in the specified portal.

Use this constructor if you wish to create a new a PortalItem to add to a portal.

Parameters:

  • portal — The portal.
  • type — The type of portal item.