AnsiStyle.foreground constructor

AnsiStyle.foreground(
  1. AnsiColor color
)

Creates foreground style with color

Implementation

factory AnsiStyle.foreground(AnsiColor color) {
  return AnsiStyle(AnsiSelection.foreground, color: color);
}