ColorfulDotsLoader constructor

const ColorfulDotsLoader({
  1. Key? key,
  2. required List<Color> colors,
  3. int duration = 1500,
  4. Color loadingColor = Colors.white,
  5. double dotSize = 27,
  6. Color borderColor = Colors.white,
  7. double height = 40,
  8. double width = 260,
  9. double fontSize = 20,
})

Implementation

const ColorfulDotsLoader({
  super.key,
  required this.colors,
  this.duration = 1500,
  this.loadingColor = Colors.white,
  this.dotSize = 27,
  this.borderColor = Colors.white,
  this.height = 40,
  this.width = 260,
  this.fontSize = 20,
}) : assert(duration > 0 && dotSize > 0 && height > 0 && width > 0,
          'Duration, dot size, height, and width must be greater than 0');