AnsiStyled constructor

AnsiStyled({
  1. LogSpan? child,
  2. ConsoleColor? foreground,
  3. ConsoleColor? background,
  4. bool bold = false,
  5. bool dim = false,
  6. bool italic = false,
  7. bool underline = false,
  8. 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,
});