DualRotatingExpandingArcLoader constructor

const DualRotatingExpandingArcLoader({
  1. Key? key,
  2. double size = 48.0,
  3. double strokeWidth = 5.0,
  4. Color innerColor = Colors.white,
  5. Color outerColor = Colors.red,
  6. int rotationDurationMs = 1000,
  7. int animationDurationMs = 2000,
})

Implementation

const DualRotatingExpandingArcLoader({
  super.key,
  this.size = 48.0,
  this.strokeWidth = 5.0,
  this.innerColor = Colors.white,
  this.outerColor = Colors.red,
  this.rotationDurationMs = 1000,
  this.animationDurationMs = 2000,
})  : assert(size > 0, 'Size must be greater than 0.'),
      assert(strokeWidth > 0 && strokeWidth < size / 3,
          'Stroke width must be greater than 0 and less than size / 3.'),
      assert(rotationDurationMs >= 500,
          'Rotation duration must be at least 500 milliseconds.'),
      assert(animationDurationMs >= 1000,
          'Animation duration must be at least 1000 milliseconds.');