ReplaceItem.clear constructor

ReplaceItem.clear(
  1. dynamic target,
  2. Slot slot
)

Use ReplaceItem.clear to clear a specific slot you can

Implementation

ReplaceItem.clear(
  dynamic target,
  this.slot,
)   : item = Item(Items.air),
      _type = _ReplaceItemType.replace {
  _setTarget(target);
}