shadow method

VText shadow({
  1. Color color = Colors.black26,
  2. double blur = 2,
  3. Offset offset = const Offset(1, 1),
})

Adds a shadow to the text.

Implementation

VText shadow({
  Color color = Colors.black26,
  double blur = 2,
  Offset offset = const Offset(1, 1),
}) => copyWithStyle(
  TextStyle(
    shadows: [Shadow(color: color, blurRadius: blur, offset: offset)],
  ),
);