Adds the ANSI escape code to the string.
String withAnsiStyleCode(int? code) { if (code == null) return this; return '\u001b[${code}m$this\u001b[0m'; }