setAlternateTextColor method

  1. @override
void setAlternateTextColor(
  1. int attribute,
  2. int foreground,
  3. int background
)
override

Implementation

@override
void setAlternateTextColor(int attribute, int foreground, int background) {
  if (attribute < 0 || attribute > 15) return;
  if (!_isDecColor(foreground) || !_isDecColor(background)) return;

  _alternateTextColors[attribute] = (
    foreground: foreground,
    background: background,
  );
}