LivePrinter constructor

LivePrinter({
  1. StringSink? sink,
  2. bool? ansi,
})

Creates a LivePrinter writing to sink (stdout by default), with colors when ansi is true (by default, when the terminal supports them and NO_COLOR isn't set).

Implementation

LivePrinter({StringSink? sink, bool? ansi})
  : _sink = sink ?? stdout,
    ansi = ansi ?? _supportsAnsi();