type property

PortalItemType type

The GIS content type of this portal item.

A portal item's type cannot be changed once it has an item ID. If you wish to change the type you must create a new PortalItem.

Implementation

PortalItemType get type {
  final coreValue = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_PortalItem_getType(
      _handle,
      errorHandler,
    );
  });
  return PortalItemType._fromCoreValue(
    coreValue,
  );
}
void type=(PortalItemType value)

Implementation

set type(PortalItemType value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_PortalItem_setType(
      _handle,
      value.coreValue,
      errorHandler,
    );
  });
}