User constructor
User({
- Point? position,
- WorldLocation? location,
- dynamic cardinalDir = 0.0,
Implementation
User({this.position, this.location, cardinalDir = 0.0})
: assert(cardinalDir >= 0 && cardinalDir <= 360,
"Cardinality can only be between 0 and 360"),
_cardinalDir = cardinalDir;