status property
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;