Make canvas virtual variable on EngineService
This commit is contained in:
parent
cc33628e5f
commit
71023de49a
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,8 @@ class EngineService {
|
||||||
return _engine;
|
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() {
|
void run() {
|
||||||
engine.running = true;
|
engine.running = true;
|
||||||
|
|
Loading…
Reference in a new issue