decorate method
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,
);