typeName property

String typeName

The type name of this portal item.

Most generally the type name is the string representation of the PortalItemType returned by PortalItem.type. However if the type is PortalItemType.unknown, the type name is set with the type found in the portal item JSON. This allows API to deal with new portal item types added since the latest API release.

Implementation

String get typeName {
  final stringHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_PortalItem_getTypeName(
      _handle,
      errorHandler,
    );
  });
  return stringHandle.toDartString();
}