Particle constructor

Particle({
  1. required List<Color> colors,
  2. int heightFactor = 4,
  3. double velocityFactor = 1.5,
  4. double maxWidth = 800,
  5. double maxHeight = 800,
  6. double velocityYDirection = 1,
  7. double velocityXDirection = 1,
})

Implementation

Particle({
  required this.colors,
  this.heightFactor = 4,
  this.velocityFactor = 1.5,
  this.maxWidth = 800,
  this.maxHeight = 800,
  this.velocityYDirection = 1,
  this.velocityXDirection = 1,
}) {
  reset();
}