glow method

TextStyle glow({
  1. Color color = Colors.blueAccent,
  2. double blurRadius = 5.0,
  3. int spread = 3,
})

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),
      ),
    ),
  );
}