GrowingArcLoader constructor

const GrowingArcLoader({
  1. Key? key,
  2. double size = 80,
  3. Color primaryColor = Colors.white,
  4. Color arcColor = Colors.red,
  5. double strokeWidth = 6,
  6. int duration = 1500,
})

Implementation

const GrowingArcLoader({
  super.key,
  this.size = 80,
  this.primaryColor = Colors.white,
  this.arcColor = Colors.red,
  this.strokeWidth = 6,
  this.duration = 1500,
}) : assert(
          size > 0 &&
              strokeWidth > 0 &&
              strokeWidth < (size / 12) &&
              duration > 1000,
          'Size must be greater than 0, strokeWidth must be positive and less than size / 12, and duration must be greater than 1000.');