Cli constructor

Cli({
  1. CliTerminal? terminal,
  2. LogLevel level = LogLevel.info,
  3. CliTheme? theme,
  4. SourceLines? sourceLines,
})

A console on terminal, the process's stdio unless given one, showing what level lets through in theme, the source of an error as sourceLines gives it.

Implementation

Cli({
  CliTerminal? terminal,
  this.level = LogLevel.info,
  CliTheme? theme,
  this.sourceLines,
}) : terminal = terminal ?? CliTerminal.system(),
     theme = theme ?? const CliTheme();