WeaponNotValid constructor

const WeaponNotValid(
  1. String name,
  2. ItemType type
)

Throw when an item isn't a valid weapon

Implementation

const WeaponNotValid(this.name, this.type);