addColorKeywordRgb method Null safety

void addColorKeywordRgb(
  1. String colorname,
  2. int red,
  3. int green,
  4. int blue
)

Add RGB color to the colorKeywords[] map that is used for dynamic lookup of colors by name. Colors added thid way can be used directly following the Chalk color/csscolor/x11 methods. ie. Chalk.addColorKeywordRgb('myfavorite', 0x64, 0x95, 0xED ); chalk.color.myfavorite('This is my favorite color');

Implementation

static void addColorKeywordRgb(
    String colorname, int red, int green, int blue) {
  ColorUtils.addColorKeywordRgb(colorname, red, green, blue);
}