SpriteAnimationGroupComponent<T> constructor

SpriteAnimationGroupComponent<T>({
  1. Map<T, SpriteAnimation>? animations,
  2. T? current,
  3. Map<T, bool>? removeOnFinish,
  4. Paint? paint,
  5. Vector2? position,
  6. Vector2? size,
  7. Vector2? scale,
  8. double? angle,
  9. Anchor? anchor,
  10. int? priority,
})

Creates a component with an empty animation which can be set later

Implementation

SpriteAnimationGroupComponent({
  this.animations,
  this.current,
  Map<T, bool>? removeOnFinish,
  Paint? paint,
  Vector2? position,
  Vector2? size,
  Vector2? scale,
  double? angle,
  Anchor? anchor,
  int? priority,
})  : removeOnFinish = removeOnFinish ?? const {},
      super(
        position: position,
        size: size,
        scale: scale,
        angle: angle,
        anchor: anchor,
        priority: priority,
      ) {
  if (paint != null) {
    this.paint = paint;
  }
}