ParticleInteraction constructor

ParticleInteraction({
  1. Key? key,
  2. bool onTapAnimation = true,
  3. double awayRadius = 100,
  4. Duration awayAnimationDuration = const Duration(milliseconds: 600),
  5. Curve awayAnimationCurve = Curves.easeIn,
  6. bool enableHover = false,
  7. double hoverRadius = 80,
})

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);