clone static method
creates a new object based on a existing Item to modify properties.
Implementation
static Item clone(Item it) => Item(
it.type,
count: it.count,
slot: it.slot?.clone(),
nbt: it.tag != null ? Map.from(it.tag ?? {}) : null,
);