ParticleInteraction constructor
ParticleInteraction({})
Creates touch and hover interaction with a particle engine.
For use in the interaction field of Particles
Defines hover interaction for interfaces with a cursor. Defines tocuh gesture interaction for mobile device interfaces.
Implementation
ParticleInteraction({
Key? key,
this.onTapAnimation = true,
this.awayRadius = 100,
this.awayAnimationDuration = const Duration(milliseconds: 600),
this.awayAnimationCurve = Curves.easeIn,
this.enableHover = false,
this.hoverRadius = 80,
}) : super(key: key);