AnsiConsoleStyle class

This is a wrapper around multiple ISelectGraphicRenditions that will combine them into one ISelectGraphicRendition.

Remember, the stack of styles is different from what you might assume.

Latter effects will not override former effects, but they may mix with each other, such as background color, foreground color, blinking, and underline.

However, fast blink and slow blink will not mix. The first effect will be accepted and displayed.

This mechanism is not handled in this package and will be handled by the console itself.

Inheritance

Constructors

AnsiConsoleStyle(List<ISelectGraphicRendition> selectGraphicRenditions)
This is a wrapper around multiple ISelectGraphicRenditions that will combine them into one ISelectGraphicRendition.
const

Properties

effectiveValue String
real ansi-escape value of SGR
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectGraphicRenditions List<ISelectGraphicRendition>
Select Graphic Rendition that are mixed together
final
value String
every SGR must carry a display attribute
no setteroverride

Methods

call(String input) String
this method receives a String input and wraps it with SGRs from selectGraphicRenditions and returns a message that can be written in an ansi terminal
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
wrap(String input) String
this method receives a String input and wraps it with SGRs from selectGraphicRenditions and returns a message that can be written in an ansi terminal

Operators

operator ==(Object other) bool
The equality operator.
inherited