diff --git a/lib/service/engine_service.dart b/lib/service/engine_service.dart index 69f4699..d7b0bed 100644 --- a/lib/service/engine_service.dart +++ b/lib/service/engine_service.dart @@ -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;