RotatingTwoArcLoader constructor

const RotatingTwoArcLoader({
  1. Key? key,
  2. double arcSize = 48.0,
  3. double arcWidth = 3.0,
  4. int rotationDurationOuterMilliseconds = 1500,
  5. int rotationDurationInnerMilliseconds = 2000,
  6. Color outerArcColor = Colors.white,
  7. Color innerArcColor = const Color(0xFFFF3D00),
})

Implementation

const RotatingTwoArcLoader({
  super.key,
  this.arcSize = 48.0,
  this.arcWidth = 3.0,
  this.rotationDurationOuterMilliseconds = 1500,
  this.rotationDurationInnerMilliseconds = 2000,
  this.outerArcColor = Colors.white,
  this.innerArcColor = const Color(0xFFFF3D00),
})  : assert(arcSize > 0, 'arcSize must be greater than zero'),
      assert(arcWidth > 0, 'arcWidth must be greater than zero'),
      assert(rotationDurationOuterMilliseconds > 0,
          'rotationDurationOuterMilliseconds must be greater than zero'),
      assert(rotationDurationInnerMilliseconds > 0,
          'rotationDurationInnerMilliseconds must be greater than zero');