chain method

PrintColored chain(
  1. String text, [
  2. PrintColor? color,
  3. bool? isBold
])

Implementation

PrintColored chain(String text, [PrintColor? color, bool? isBold]) {
  outputs.add(Output(text, color, isBold: isBold ?? false));
  return this;
}