DotsProgressLoader constructor

const DotsProgressLoader({
  1. Key? key,
  2. Color initialColor = Colors.grey,
  3. Color secondColor = Colors.white,
  4. int duration = 2,
  5. double size = 17,
})

Implementation

const DotsProgressLoader(
    {super.key,
    this.initialColor = Colors.grey,
    this.secondColor = Colors.white,
    this.duration = 2,
    this.size = 17})
    : assert(size > 0 && duration > 0,
          'Size and duration should be greater than 0');