Make canvas virtual variable on EngineService

This commit is contained in:
Marty Oehme 2018-08-25 15:00:46 +02:00
parent cc33628e5f
commit 71023de49a

View file

@ -12,7 +12,8 @@ class EngineService {
return _engine;
}
void setCanvas(html.CanvasElement canvas) => engine.canvas = canvas;
void set canvas(html.CanvasElement canvas) => engine.canvas = canvas;
html.CanvasElement get canvas => engine.canvas;
void run() {
engine.running = true;