User constructor

User({
  1. Point? position,
  2. WorldLocation? location,
  3. 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;