PendulumLoader constructor

const PendulumLoader({
  1. Key? key,
  2. int duration = 500,
  3. double size = 30,
  4. double width = 2,
  5. Color color = Colors.white,
})

Implementation

const PendulumLoader(
    {super.key,
    this.duration = 500,
    this.size = 30,
    this.width = 2,
    this.color = Colors.white})
    : assert(duration > 0 && size > 0 && width > 0,
          'duration must be greater than 0, size must be greater than 0, and width must be greater than 0');