glow method
Wraps the widget with a glowing animation effect.
Example:
Icon(Icons.star).glow(color: Colors.yellow);
Implementation
Widget glow({
Color color = Colors.blue,
Duration duration = const Duration(seconds: 1),
double minRadius = 0.0,
double maxRadius = 10.0,
}) {
return _GlowWidget(
color: color,
duration: duration,
minRadius: minRadius,
maxRadius: maxRadius,
child: this,
);
}