ItemDefinition constructor

const ItemDefinition({
  1. required String id,
  2. int maxStack = 1,
  3. bool equippable = false,
  4. ItemRarity rarity = ItemRarity.common,
})

Implementation

const ItemDefinition({
  required this.id,
  this.maxStack = 1,
  this.equippable = false,
  this.rarity = ItemRarity.common,
});