withOpacity method

TextStyle withOpacity(
  1. double opacity
)

Set the transparency of the text's TextStyle.color to opacity.

Transparency should be set between 0.0 and 1.0.

テキストのTextStyle.colorの透過度をopacityに設定します。

透過度は0.0〜1.0の間で設定してください。

Implementation

TextStyle withOpacity(double opacity) {
  return copyWith(color: color?.withOpacity(opacity));
}