LevelView constructor

LevelView(Level level)

Constructor creates and returns new LevelView with a lane element

Implementation

LevelView(Level level) {
  this._level = level;

  this._lane = DivElement()..setAttribute("id", "lane");
  querySelector("body")
    ..setInnerHtml("")
    ..append(this._lane);
}