ExpectedAttack constructor

const ExpectedAttack({
  1. required double beat,
  2. required AttackRole role,
  3. required Hand hand,
  4. required int slot,
  5. String? degree,
  6. int? target,
  7. bool accent = false,
})

Implementation

const ExpectedAttack({
  required this.beat,
  required this.role,
  required this.hand,
  required this.slot,
  this.degree,
  this.target,
  this.accent = false,
}) : assert(role != AttackRole.degree || degree != null),
     assert(role != AttackRole.approach || target != null);