ReplaceItem.modify constructor

ReplaceItem.modify(
  1. dynamic target,
  2. String? modifier, {
  3. required Slot slot,
})

ReplaceItem.modify takes a modifier path and applies it to an slot.

Implementation

ReplaceItem.modify(
  dynamic target,
  this.modifier, {
  required this.slot,
}) : _type = _ReplaceItemType.modify {
  _setTarget(target);
}