status property

AnsiOutput status
getter/setter pair

Set status to false to globally disable Ansi styling. By default status is true.

To disable Ansi styling when running a script use the command line option:

dart --define=isMonochrome=false

Implementation

static AnsiOutput status = bool.fromEnvironment(
  'isMonochrome',
)
    ? AnsiOutput.disabled
    : AnsiOutput.enabled;