AvatarGlowMultiColor constructor
const
AvatarGlowMultiColor({
- Key? key,
- required Widget child,
- List<
Color> glowColors = const [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 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.',
);