CardReference constructor
Creates a new CardReference with the given cardSet
and orderInSet
.
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.
Implementation
CardReference(
this.cardSet,
this.orderInSet, [
this.quantity = 1,
]) {
checkPositive(quantity, 'quantity');
}