AmbientLightContainer constructor

const AmbientLightContainer({
  1. Key? key,
  2. List<Color> colors = const [Colors.blue, Colors.purple],
  3. Widget? child,
  4. BorderRadius? borderRadius,
  5. double? width,
  6. double? height,
  7. EdgeInsetsGeometry? padding,
  8. EdgeInsetsGeometry? margin,
  9. BoxShape shape = BoxShape.rectangle,
  10. VoidCallback? onTap,
  11. MouseCursor? mouseCursor,
  12. double ambientIntensity = 0.5,
  13. double spreadRadius = 4.0,
  14. double blurRadius = 12.0,
  15. Duration animationDuration = const Duration(seconds: 5),
  16. bool isPulsing = false,
  17. double pulseScaleFactor = 1.2,
  18. bool showSharpBorder = false,
  19. double glowWidthMultiplier = 3.5,
})

Implementation

const AmbientLightContainer({
  super.key,
  this.colors = const [Colors.blue, Colors.purple],
  this.child,
  this.borderRadius,
  this.width,
  this.height,
  this.padding,
  this.margin,
  this.shape = BoxShape.rectangle,
  this.onTap,
  this.mouseCursor,
  this.ambientIntensity = 0.5,
  this.spreadRadius = 4.0,
  this.blurRadius = 12.0,
  this.animationDuration = const Duration(seconds: 5),
  this.isPulsing = false,
  this.pulseScaleFactor = 1.2,
  this.showSharpBorder = false,
  this.glowWidthMultiplier = 3.5,
})  : assert(ambientIntensity >= 0.0 && ambientIntensity <= 1.0),
      assert(pulseScaleFactor >= 1.0),
      assert(glowWidthMultiplier > 0),
      assert(colors.length >= 2);