CircularParticle constructor

CircularParticle(
  1. {Key? key,
  2. required double height,
  3. required double width,
  4. bool onTapAnimation = true,
  5. double numberOfParticles = 500,
  6. double speedOfParticles = 2,
  7. double awayRadius = 100,
  8. required bool isRandomColor,
  9. Color particleColor = Colors.white,
  10. Duration awayAnimationDuration = const Duration(milliseconds: 600),
  11. double maxParticleSize = 4,
  12. bool isRandSize = false,
  13. List<Color> randColorList = const [Colors.black, Colors.blue, Colors.white, Colors.red, Colors.green],
  14. Curve awayAnimationCurve = Curves.easeIn,
  15. bool enableHover = false,
  16. Color hoverColor = Colors.orangeAccent,
  17. double hoverRadius = 80,
  18. bool connectDots = false}
)

Implementation

CircularParticle({
  Key? key,
  required this.height,
  required this.width,
  this.onTapAnimation = true,
  this.numberOfParticles = 500,
  this.speedOfParticles = 2,
  this.awayRadius = 100,
  required this.isRandomColor,
  this.particleColor = Colors.white,
  this.awayAnimationDuration = const Duration(milliseconds: 600),
  this.maxParticleSize = 4,
  this.isRandSize = false,
  this.randColorList = const [
    Colors.black,
    Colors.blue,
    Colors.white,
    Colors.red,
    Colors.green,
  ],
  this.awayAnimationCurve = Curves.easeIn,
  this.enableHover = false,
  this.hoverColor = Colors.orangeAccent,
  this.hoverRadius = 80,
  this.connectDots = false,
}) : super(key: key);