All components must call super

This commit is contained in:
Lukas Klingsbo
2020-10-07 09:20:28 +02:00
parent 7a29d19cc5
commit f48bf4d654
9 changed files with 12 additions and 10 deletions

View File

@ -10,7 +10,10 @@ class TimerComponent extends Component {
TimerComponent(this.timer);
@override
void update(double dt) => timer.update(dt);
void update(double dt) {
super.update(dt);
timer.update(dt);
}
@override
void render(Canvas canvas) {}