operator * method

Score operator *(
  1. dynamic other
)

multiply by

Implementation

Score operator *(dynamic other) {
  if (other is int) {
    return multiplyByScore(
      Score.con(other),
    );
  }
  if (other is Score) return multiplyByScore(other);
  throw ('Please use either a Score or an Int in the operator /');
}