createItem method
inherited
Creates a new item within a space.
parentPath is the space path where the item will be created.
itemName is the name of the item (e.g., 'hero').
kind is the type of item (e.g., 'model', 'texture', 'workflow').
existsError controls whether to throw an error if the item
already exists (default: true).
Implementation
Future<ItemResponse> createItem(
String parentPath,
String itemName,
String kind, {
bool existsError = true,
}) async {
final request = CreateItemRequest()
..parentPath = parentPath
..itemName = itemName
..kind = kind
..existsError = existsError;
return stub.createItem(request, options: callOptions);
}