foreground method

TextComponentStyle foreground(
  1. AnsiColorType color
)

Returns a copy of this style with the given color as the foreground color.

Implementation

TextComponentStyle foreground(AnsiColorType color) => copyWith(color: color);