BackgroundImageGame constructor

BackgroundImageGame({
  1. required Vector2 offset,
  2. required String imagePath,
  3. int? id,
  4. double factor = 1,
  5. double parallaxX = 1,
  6. double parallaxY = 1,
  7. double opacity = 1,
  8. bool isBackground = true,
  9. int priorityImage = 0,
})

Implementation

BackgroundImageGame({
  required this.offset,
  required this.imagePath,
  this.id,
  this.factor = 1,
  this.parallaxX = 1,
  this.parallaxY = 1,
  double opacity = 1,
  this.isBackground = true,
  this.priorityImage = 0,
}) {
  opacity = opacity;
}