underline method

TextStyle underline({
  1. Color? color,
  2. TextDecorationStyle? style,
  3. double? thickness,
})

Returns the text style to be underlined.

color is the color of the underline.

style is the style of the underline.

thickness is the thickness of the underline.

下線を引くためのテキストスタイルを返します。

colorは下線の色です。

styleは下線のスタイルです。

thicknessは下線の太さです。

Implementation

TextStyle underline({
  Color? color,
  TextDecorationStyle? style,
  double? thickness,
}) =>
    TextStyle(
      decoration: TextDecoration.underline,
      decorationColor: color,
      decorationStyle: style,
      decorationThickness: thickness,
    );