background method

TextComponentStyle background(
  1. AnsiColorType color
)

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

Implementation

TextComponentStyle background(AnsiColorType color) =>
    copyWith(bgColor: color);