AvatarGlowMultiColor constructor

const AvatarGlowMultiColor({
  1. Key? key,
  2. required Widget child,
  3. List<Color> glowColors = const [Colors.white],
  4. BoxShape glowShape = BoxShape.circle,
  5. BorderRadius? glowBorderRadius,
  6. Duration duration = const Duration(seconds: 2),
  7. Duration? startDelay,
  8. bool animate = true,
  9. bool repeat = true,
  10. Curve curve = Curves.fastOutSlowIn,
  11. double glowRadiusFactor = 0.7,
})

Creates an AvatarGlowMultiColor widget.

Implementation

const AvatarGlowMultiColor({
  super.key,
  required this.child,
  this.glowColors = const [Colors.white],
  this.glowShape = BoxShape.circle,
  this.glowBorderRadius,
  this.duration = const Duration(seconds: 2),
  this.startDelay,
  this.animate = true,
  this.repeat = true,
  this.curve = Curves.fastOutSlowIn,
  this.glowRadiusFactor = 0.7,
}) : assert(
        glowShape != BoxShape.circle || glowBorderRadius == null,
        'Cannot specify a border radius if the shape is a circle.',
      );