Color.ansi constructor

const Color.ansi(
  1. int code, {
  2. bool bright = false,
})

A named ANSI colour (0–7), rendered bright when used with Style.bold or via the 90–97 range when bright is set.

Implementation

const Color.ansi(int code, {bool bright = false})
  : this._(bright ? code + 8 : code, null);