LifeRoad constructor

LifeRoad(
  1. LifeRoadEntity _entity,
  2. Size _size,
  3. {List<Human> humans,
  4. Map<String, Position> positionsByHumanId,
  5. Key key}
)

Implementation

LifeRoad(
  this._entity,
  this._size, {
  List<Human> humans,
  Map<String, Position> positionsByHumanId,
  Key key,
})  : _humans = humans ?? [],
      _positionsByHumanId = positionsByHumanId ?? {},
      super(key: key);