RainbowConfig constructor

const RainbowConfig({
  1. List<Color> colors = const [Color(0xFFFF1744), Color(0xFFFF9100), Color(0xFFFFEA00), Color(0xFF00E676), Color(0xFF00B0FF), Color(0xFF651FFF), Color(0xFFAA00FF)],
  2. double arcThickness = 25.0,
  3. Color backgroundColor = Colors.black,
  4. bool useGradient = true,
  5. double arcSpacing = 8.0,
  6. double heightRatio = 0.6,
  7. double positionOffset = 0.15,
  8. double glowIntensity = 0.5,
  9. int animationDuration = 3000,
  10. bool enableShimmer = true,
  11. RainbowPosition position = RainbowPosition.bottom,
  12. RainbowOrientation orientation = RainbowOrientation.up,
})

Implementation

const RainbowConfig({
  this.colors = const [
    Color(0xFFFF1744), // Vibrant Red
    Color(0xFFFF9100), // Bright Orange
    Color(0xFFFFEA00), // Sunny Yellow
    Color(0xFF00E676), // Spring Green
    Color(0xFF00B0FF), // Sky Blue
    Color(0xFF651FFF), // Rich Indigo
    Color(0xFFAA00FF), // Vivid Purple
  ],
  this.arcThickness = 25.0,
  this.backgroundColor = Colors.black,
  this.useGradient = true,
  this.arcSpacing = 8.0,
  this.heightRatio = 0.6,
  this.positionOffset = 0.15,
  this.glowIntensity = 0.5,
  this.animationDuration = 3000,
  this.enableShimmer = true,
  this.position = RainbowPosition.bottom,
  this.orientation = RainbowOrientation.up,
})  : assert(positionOffset >= 0 && positionOffset <= 1),
      assert(heightRatio > 0 && heightRatio <= 1),
      assert(glowIntensity >= 0 && glowIntensity <= 1);