StyleTable constructor

StyleTable({
  1. ColorMode colorMode = ColorMode.trueColor,
  2. bool styledUnderlines = true,
  3. int defaultBg = 0,
})

A table with only style 0, all defaults, and no pens.

colorMode is the colors the terminal shows, true color by default; styledUnderlines whether it shows the underline styles, as it does by default; defaultBackgroundRgb the RGB of its default background, black by default, until the terminal tells it.

Implementation

StyleTable({
  this._colorMode = ColorMode.trueColor,
  this._styledUnderlines = true,
  this._defaultBg = 0,
}) {
  _intern(0, 0, 0, 0, 0); // id 0
}