SpriteGroupComponent<T> constructor

SpriteGroupComponent<T>({
  1. Map<T, Sprite>? sprites,
  2. T? current,
  3. Paint? paint,
  4. Vector2? position,
  5. Vector2? size,
  6. Vector2? scale,
  7. double? angle,
  8. Anchor? anchor,
  9. int? priority,
})

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

Implementation

SpriteGroupComponent({
  this.sprites,
  this.current,
  Paint? paint,
  Vector2? position,
  Vector2? size,
  Vector2? scale,
  double? angle,
  Anchor? anchor,
  int? priority,
}) : super(
        position: position,
        size: size,
        scale: scale,
        angle: angle,
        anchor: anchor,
        priority: priority,
      ) {
  if (paint != null) {
    this.paint = paint;
  }
}