withColorAndOpacity method

TextStyle withColorAndOpacity(
  1. ColorDescriptor descriptor,
  2. double opacity
)

Implementation

TextStyle withColorAndOpacity(ColorDescriptor descriptor, double opacity) =>
    copyWith(color: descriptor.color.withOpacity(opacity));