fg property

  1. @override
String get fg
override

Returns the ANSI escape sequence for the foreground color.

If the color is dimmed, returns a compound escape sequence that includes both the dim code (2) and the color code.

Implementation

@override
String get fg => _dim ? '2;$code' : '$code';