withOpacity static method

TextStyle withOpacity(
  1. TextStyle baseStyle,
  2. double opacity
)

Implementation

static TextStyle withOpacity(TextStyle baseStyle, double opacity) =>
    baseStyle.copyWith(color: baseStyle.color?.withOpacity(opacity));