chalkstrings
library
Extensions
-
ChalkString
on String
-
Extensions on the String class that allow you to use the Chalk methods
directly on Strings, ie.
'This will be red italic'.red.italic
'This will be red on yellow background'.red.onYellow
-
ChalkX11Strings
on String
-
This extension class adds proper methods to Chalk for all of the
standard X11/CSS/SVG color names for use by Chalk.
Properties
-
ansiColorDisabled
→ bool
-
Read only. Chalk does not look at it's value.
final
-
chalk
↔ Chalk
-
Default global instance of chalk used for base call.
This can be set to a specific Chalk instance that would then serve
as basis for all calls.
getter/setter pair
-
chalkUsedAnsiInclude
→ String
-
Read only, informational only.
Name of the ansi include file used
supports_ansi.dart
is the default,
or the dart.library.io version supports_ansi_io.dart
or the dart.library.html version supports_ansi_web.dart
.
final
-
dartSupportsAnsiColor
→ bool
-
Read only. Chalk does not use it's value although in some
situation a user might use this to set the Chalk ansi color level
(or something) I have left it here only for completeness.
Within the common debug consoles this variable is essentially
worthless because they return FALSE from both VSCode debug console
and IntelliJ/Android Studio debug consoles.
(This is because dart just checks for 'xterm' string being present in
the 'TERM' environmental variable of the console..)
See https://github.com/dart-lang/sdk/issues/31606 and
https://github.com/dart-lang/sdk/issues/41770 for more info.
final