CustomItemDefinition

data class CustomItemDefinition(val id: String, val builder: () -> CustomItem)

Represents a definition for a custom item, including its unique ID and a builder function to create the item.

Constructors

Link copied to clipboard
constructor(id: String, builder: () -> CustomItem)

Properties

Link copied to clipboard
val builder: () -> CustomItem

A function that constructs the custom item.

Link copied to clipboard
val id: String

The unique identifier for the custom item.