Give constructor

Give(
  1. Entity entity, {
  2. required Item item,
})

Gives a item to a player.

Implementation

Give(this.entity, {required this.item});