UpgradeCard.token constructor
UpgradeCard.token({})
Creates an upgrade token card with the given properties.
Errors
This class is not intended to be used with user-provided input, and as such does not provide any error handling. If any of the fields are invalid, an error will be thrown.
See also isToken, which has different validation rules for some fields.
Implementation
UpgradeCard.token({
required super.cardSet,
required super.orderInSet,
required super.name,
required super.traits,
this.bonusPower = 0,
this.bonusHp = 0,
}) : super(aspects: const {}, cost: 0, unique: false, isToken: true);