AnsiStyle class
A class that provides a way to style strings with ANSI escape codes.
Constructors
- AnsiStyle.new(int code)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
formatted(
Object? value) → String - Formats the given value with the style.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator +(
AnsiStyle other) → AnsiStyle - Combines two styles into one.
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- bgBlack → AnsiStyle
-
Adds a black background.
no setter
- bgBlue → AnsiStyle
-
Adds a blue background.
no setter
- bgCyan → AnsiStyle
-
Adds a cyan background.
no setter
- bgGreen → AnsiStyle
-
Adds a green background.
no setter
- bgLightBlack → AnsiStyle
-
Adds a light black background.
no setter
- bgLightBlue → AnsiStyle
-
Adds a light blue background.
no setter
- bgLightCyan → AnsiStyle
-
Adds a light cyan background.
no setter
- bgLightGreen → AnsiStyle
-
Adds a light green background.
no setter
- bgLightPurple → AnsiStyle
-
Adds a light purple background.
no setter
- bgLightRed → AnsiStyle
-
Adds a light red background.
no setter
- bgLightWhite → AnsiStyle
-
Adds a light white background.
no setter
- bgLightYellow → AnsiStyle
-
Adds a light yellow background.
no setter
- bgPurple → AnsiStyle
-
Adds a purple background.
no setter
- bgRed → AnsiStyle
-
Adds a red background.
no setter
- bgWhite → AnsiStyle
-
Adds a white background.
no setter
- bgYellow → AnsiStyle
-
Adds a yellow background.
no setter
- blink → AnsiStyle
-
Adds a blink.
no setter
- bold → AnsiStyle
-
Adds a bold style.
no setter
- cancelled → AnsiStyle
-
Adds a hidden.
no setter
- dim → AnsiStyle
-
Adds a dim style.
no setter
- escape → AnsiStyle
-
Adds a reset code.
no setter
- fgBlack → AnsiStyle
-
Adds a black foreground.
no setter
- fgBlue → AnsiStyle
-
Adds a blue foreground.
no setter
- fgCyan → AnsiStyle
-
Adds a cyan foreground.
no setter
- fgGreen → AnsiStyle
-
Adds a green foreground.
no setter
- fgLightBlack → AnsiStyle
-
Adds a light black foreground.
no setter
- fgLightBlue → AnsiStyle
-
Adds a light blue foreground.
no setter
- fgLightCyan → AnsiStyle
-
Adds a light cyan foreground.
no setter
- fgLightGreen → AnsiStyle
-
Adds a light green foreground.
no setter
- fgLightPurple → AnsiStyle
-
Adds a light purple foreground.
no setter
- fgLightRed → AnsiStyle
-
Adds a light red foreground.
no setter
- fgLightWhite → AnsiStyle
-
Adds a light white foreground.
no setter
- fgLightYellow → AnsiStyle
-
Adds a light yellow foreground.
no setter
- fgPurple → AnsiStyle
-
Adds a purple foreground.
no setter
- fgRed → AnsiStyle
-
Adds a red foreground.
no setter
- fgWhite → AnsiStyle
-
Adds a white foreground.
no setter
- fgYellow → AnsiStyle
-
Adds a yellow foreground.
no setter
- flicker → AnsiStyle
-
Adds a fast blink.
no setter
- h2 → AnsiStyle
-
Adds h2 style.
no setter
- h3 → AnsiStyle
-
Adds h3 style.
no setter
- h4 → AnsiStyle
-
Adds h4 style.
no setter
- headingTertiary1 → AnsiStyle
-
Adds a tertiary heading style.
no setter
- italic → AnsiStyle
-
Adds an italic style.
no setter
- reverse → AnsiStyle
-
Adds a reverse.
no setter
- strikethrough → AnsiStyle
-
Adds a strikethrough.
no setter
- style11 → AnsiStyle
-
Adds style 11.
no setter
- style12 → AnsiStyle
-
Adds style 12.
no setter
- style13 → AnsiStyle
-
Adds style 13.
no setter
- style14 → AnsiStyle
-
Adds style 14.
no setter
- style15 → AnsiStyle
-
Adds style 15.
no setter
- style20 → AnsiStyle
-
Adds style 20.
no setter
- style21 → AnsiStyle
-
Adds style 21.
no setter
- subscript → AnsiStyle
-
Adds a subscript.
no setter
- superscript → AnsiStyle
-
Adds a superscript.
no setter
- underline → AnsiStyle
-
Adds an underline.
no setter