RotatingArcLoader constructor

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

Implementation

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