Adds an ANSI style to the string.
String withAnsiStyle(AnsiStyle? style) { if (style == null) return this; return style.formatted(this); }