destroy -> remove for components

This commit is contained in:
Lukas Klingsbo
2020-11-15 14:37:00 +01:00
parent 8e51424974
commit 4a3f9778a4
11 changed files with 34 additions and 32 deletions

View File

@ -19,5 +19,5 @@ class TimerComponent extends Component {
void render(Canvas canvas) {}
@override
bool destroy() => timer.finished;
bool shouldRemove() => timer.finished;
}