AvatarGlow constructor
const
AvatarGlow({
- Key? key,
- required Widget child,
- int glowCount = 2,
- Color glowColor = Colors.white,
- BoxShape glowShape = BoxShape.circle,
- BorderRadius? glowBorderRadius,
- Duration duration = const Duration(seconds: 2),
- Duration? startDelay,
- bool animate = true,
- bool repeat = true,
- Curve curve = Curves.fastOutSlowIn,
- double glowRadiusFactor = 0.7,
Creates an AvatarGlow widget.
Implementation
const AvatarGlow({
super.key,
required this.child,
this.glowCount = 2,
this.glowColor = 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.',
);