AnimationComponent.empty was breaking

This commit is contained in:
Erick Zanardo
2019-07-11 19:45:02 -03:00
committed by Erick
parent d2c7fcf506
commit 4daedc23e1
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import 'package:flame/animation.dart';
class AnimationComponent extends PositionComponent {
Animation animation;
bool destroyOnFinish;
bool destroyOnFinish = false;
AnimationComponent(double width, double height, this.animation,
{this.destroyOnFinish = false}) {