AnsiStyled constructor
AnsiStyled({
- LogSpan? child,
- ConsoleColor? foreground,
- ConsoleColor? background,
- bool bold = false,
- bool dim = false,
- bool italic = false,
- bool underline = false,
- bool strikethrough = false,
Creates a styled span that applies ANSI formatting to its child.
All style options default to false/null (no styling applied).
Implementation
AnsiStyled({
super.child,
this.foreground,
this.background,
this.bold = false,
this.dim = false,
this.italic = false,
this.underline = false,
this.strikethrough = false,
});