decorate method

TextStyle decorate(
  1. TextDecoration decoration, {
  2. Color? color,
  3. TextDecorationStyle? style,
})

Adds a text decoration (underline, lineThrough, overline) Optional color and style for the decoration.

Implementation

TextStyle decorate(
  TextDecoration decoration, {
  Color? color,
  TextDecorationStyle? style,
}) => copyWith(
  decoration: decoration,
  decorationColor: color,
  decorationStyle: style,
);