SparkleEffect constructor

SparkleEffect({
  1. required Duration duration,
  2. EasingFunction easing = Easing.linear,
  3. int density = 2,
  4. List<Color> colors = const [Colors.yellow, Colors.white, CharmColors.lichen],
  5. List<String> sparkleChars = const ['✦', '✧', '*', '+', '.'],
})

Creates a SparkleEffect with config for duration, easing, particle density, colors, and characters.

Implementation

SparkleEffect({
  required super.duration,
  super.easing,
  this.density = 2,
  this.colors = const [Colors.yellow, Colors.white, CharmColors.lichen],
  this.sparkleChars = const ['✦', '✧', '*', '+', '.'],
});