AnsiStyle class
Console style definition with color and type of "selection"
Constructors
- AnsiStyle(AnsiSelection selection, {AnsiColor? color, int? bit9Pallete})
- Creates style by its selection and optional color details
- AnsiStyle.background(AnsiColor color)
-
Creates background style with color.
factory
- AnsiStyle.bright(AnsiColor color)
-
Creates Bright style with color
factory
- AnsiStyle.foreground(AnsiColor color)
-
Creates foreground style with color
factory
- AnsiStyle.reversed()
-
Creates Reversed style.
factory
- AnsiStyle.underline()
-
Creates underline style.
factory
Properties
- bit9Pallete ↔ int?
-
If supported bit9 palette
getter/setter pair
- color ↔ AnsiColor?
-
Color part of the style
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selection ↔ AnsiSelection
-
Style's selection
getter/setter pair
Methods
-
apply(
String text) → String - Applies defined style into the text.
-
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 ==(
Object other) → bool -
The equality operator.
inherited