loadParallaxComponent method

Future<ParallaxComponent<FlameGame<World>>> loadParallaxComponent(
  1. Iterable<ParallaxData> dataList, {
  2. Vector2? baseVelocity,
  3. Vector2? velocityMultiplierDelta,
  4. ImageRepeat repeat = ImageRepeat.repeatX,
  5. Alignment alignment = Alignment.bottomLeft,
  6. LayerFill fill = LayerFill.height,
  7. Images? images,
  8. Vector2? position,
  9. Vector2? size,
  10. Vector2? scale,
  11. double? angle,
  12. Anchor? anchor,
  13. int? priority,
  14. FilterQuality? filterQuality,
  15. ComponentKey? key,
})

Implementation

Future<ParallaxComponent> loadParallaxComponent(
  Iterable<ParallaxData> dataList, {
  Vector2? baseVelocity,
  Vector2? velocityMultiplierDelta,
  ImageRepeat repeat = ImageRepeat.repeatX,
  Alignment alignment = Alignment.bottomLeft,
  LayerFill fill = LayerFill.height,
  Images? images,
  Vector2? position,
  Vector2? size,
  Vector2? scale,
  double? angle,
  Anchor? anchor,
  int? priority,
  FilterQuality? filterQuality,
  ComponentKey? key,
}) {
  return ParallaxComponent.load(
    dataList,
    baseVelocity: baseVelocity,
    velocityMultiplierDelta: velocityMultiplierDelta,
    repeat: repeat,
    alignment: alignment,
    fill: fill,
    images: images,
    position: position,
    size: size ?? gameRef.camera.canvasSize,
    scale: scale,
    angle: angle,
    anchor: anchor,
    priority: priority,
    filterQuality: filterQuality,
    key: key,
  );
}