Cli constructor

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

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

Implementation

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