withShadow method

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

Sets text shadows.

Implementation

TextStyle withShadow({
  Color color = Colors.black38,
  double blurRadius = 2.0,
  Offset offset = const Offset(1, 1),
}) {
  return copyWith(shadows: [
    Shadow(color: color, blurRadius: blurRadius, offset: offset),
  ]);
}