glow method
Adds multiple text shadows for a glow effect.
Implementation
TextStyle glow({
Color color = Colors.blueAccent,
double blurRadius = 5.0,
int spread = 3,
}) {
return copyWith(
shadows: List.generate(
spread,
(index) => Shadow(
color: color,
blurRadius: blurRadius + (index * 2),
),
),
);
}