Glow2 constructor

const Glow2({
  1. Key? key,
  2. required Widget child,
  3. int glowCount = 2,
  4. Color glowColor = Colors.white,
  5. BoxShape glowShape = BoxShape.circle,
  6. BorderRadius? glowBorderRadius,
  7. Duration duration = const Duration(milliseconds: 3500),
  8. Duration? startDelay,
  9. bool animate = true,
  10. bool repeat = true,
  11. Curve curve = Curves.fastOutSlowIn,
  12. double glowRadiusFactor = 0.5,
  13. double startInsetFactor = 0.1,
})

Creates an Glow2 widget.

Implementation

const Glow2({
  super.key,
  required this.child,
  this.glowCount = 2,
  this.glowColor = Colors.white,
  this.glowShape = BoxShape.circle,
  this.glowBorderRadius,
  this.duration = const Duration(milliseconds: 3500),
  this.startDelay,
  this.animate = true,
  this.repeat = true,
  this.curve = Curves.fastOutSlowIn,
  this.glowRadiusFactor = 0.5,
  this.startInsetFactor = 0.1,
}) : assert(
        glowShape != BoxShape.circle || glowBorderRadius == null,
        'Cannot specify a border radius if the shape is a circle.',
      );