ExplosionLoader constructor

const ExplosionLoader({
  1. Key? key,
  2. double size = 150,
  3. Color color = Colors.red,
  4. double radius = 25,
  5. double duration = 1000,
  6. double xInterval = 20,
  7. double yMax = 5,
})

Implementation

const ExplosionLoader(
    {super.key,
    this.size = 150,
    this.color = Colors.red,
    this.radius = 25,
    this.duration = 1000,
    this.xInterval = 20,
    this.yMax = 5})
    : assert(radius >= 0 &&
          size >= 0 &&
          duration >= 0 &&
          xInterval >= 0 &&
          yMax > 0);