ansi_codes
ANSI escape codes for styling strings in the terminal
You probably want the higher-level ansi for styling your strings.

Install
dart pub add ansi_codes
Usage
import 'package:ansi_codes/ansi_codes.dart';
void main() {
print('${ansiCodes.green.open}Hello world!${ansiCodes.green.close}');
}
Codes
Modifiers
resetbolddimitalic(Not widely supported)underlineoverlineSupported on VTE-based terminals, the GNOME terminal, mintty, and Git Bash.inversehiddenstrikethrough(Not widely supported)
Colors
blackredgreenyellowbluemagentacyanwhiteblackBright(alias:gray,grey)redBrightgreenBrightyellowBrightblueBrightmagentaBrightcyanBrightwhiteBright
Background colors
bgBlackbgRedbgGreenbgYellowbgBluebgMagentabgCyanbgWhitebgBlackBright(alias:bgGray,bgGrey)bgRedBrightbgGreenBrightbgYellowBrightbgBlueBrightbgMagentaBrightbgCyanBrightbgWhiteBright