BaseCard constructor
BaseCard({})
Creates a base 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.
Implementation
BaseCard({
required super.cardSet,
required super.orderInSet,
required super.name,
required super.aspects,
required this.location,
this.health = 30,
}) : super(unique: false) {
checkPositive(health, 'hp');
checkNotEmpty(value: location, name: 'location');
}