CircularParticle constructor
CircularParticle(
- {Key? key,
- required double height,
- required double width,
- bool onTapAnimation = true,
- double numberOfParticles = 500,
- double speedOfParticles = 2,
- double awayRadius = 100,
- required bool isRandomColor,
- Color particleColor = Colors.white,
- Duration awayAnimationDuration = const Duration(milliseconds: 600),
- double maxParticleSize = 4,
- bool isRandSize = false,
- List<
Color> randColorList = const [Colors.black, Colors.blue, Colors.white, Colors.red, Colors.green], - Curve awayAnimationCurve = Curves.easeIn,
- bool enableHover = false,
- Color hoverColor = Colors.orangeAccent,
- double hoverRadius = 80,
- 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);