io property

Console get io
inherited

Access to the I/O helper for console output.

Use this to output formatted messages, tables, progress bars, etc.

Implementation

Console get io {
  final r = runner;
  if (r is CommandRunner<T>) {
    return r.io;
  }
  return Console(
    renderer: StringRenderer(colorProfile: ColorProfile.ascii),
    out: dartio.stdout.writeln,
    err: dartio.stderr.writeln,
  );
}