shadow method

TextStyle shadow(
  1. Color c, {
  2. double blur = 2,
  3. Offset offset = const Offset(1, 1),
})

Adds a shadow with optional blur and offset.

Implementation

TextStyle shadow(
  Color c, {
  double blur = 2,
  Offset offset = const Offset(1, 1),
}) => copyWith(shadows: [Shadow(color: c, blurRadius: blur, offset: offset)]);