bg256 function

String bg256(
  1. int colorIndex
)

Set color to background from 256-color table.

See also bg256Open and bg256Close.

Implementation

String bg256(int colorIndex) {
  IndexError.check(colorIndex, 256, name: 'colorIndex');

  return '$bg256Open$colorIndex$bg256Close';
}