SpinningBarsLoader constructor

const SpinningBarsLoader({
  1. Key? key,
  2. double size = 50,
  3. double barHeight = 14,
  4. Color color = Colors.white,
  5. int duration = 1,
})

Implementation

const SpinningBarsLoader(
    {super.key,
    this.size = 50,
    this.barHeight = 14,
    this.color = Colors.white,
    this.duration = 1})
    : assert(size > 0 && barHeight > 0 && barHeight < size && duration > 0,
          'Size must be greater than 0, bar height must be greater than 0 and less than size, and duration must be greater than 0.');