withShadow method

TextStyle withShadow({
  1. Color color = const Color(0x33000000),
  2. double blurRadius = 2.0,
  3. Offset offset = Offset.zero,
})

Applies a single shadow

Implementation

TextStyle withShadow({
  Color color = const Color(0x33000000),
  double blurRadius = 2.0,
  Offset offset = Offset.zero,
}) => copyWith(
  shadows: [Shadow(color: color, blurRadius: blurRadius, offset: offset)],
);