Glow2 constructor
const
Glow2({
- Key? key,
- required Widget child,
- int glowCount = 2,
- Color glowColor = Colors.white,
- BoxShape glowShape = BoxShape.circle,
- BorderRadius? glowBorderRadius,
- Duration duration = const Duration(milliseconds: 3500),
- Duration? startDelay,
- bool animate = true,
- bool repeat = true,
- Curve curve = Curves.fastOutSlowIn,
- double glowRadiusFactor = 0.5,
- 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.',
);