raw method

void raw(
  1. String content, {
  2. AnsiStyle? style,
  3. LogLevel logLevel = cli.LogLevel.info,
})

Raw Messages Guidelines

Used for raw text output for full control over the output. You should normally not use this directly, but rely on prebuilt printers like TablePrinter. This method is useful when constructing custom printers where additional control may be needed.

Setting the style to TextLogStyle.hint will output the content in a dark gray color.

Format:

<content>

Implementation

void raw(
  final String content, {
  final cli.AnsiStyle? style,
  final cli.LogLevel logLevel = cli.LogLevel.info,
}) {
  final String characters = style?.wrap(content) ?? content;

  _logger.write(characters, logLevel, newLine: false, newParagraph: false);
}