Damage.by constructor

Damage.by(
  1. Entity? by, {
  2. required Entity target,
  3. required double amount,
  4. String? damageType,
  5. Entity? cause,
})

Implementation

Damage.by(
  this.by, {
  required this.target,
  required this.amount,
  this.damageType,
  this.cause,
}) : location = null;