isColor static method

bool isColor(
  1. String color
)

Implementation

static bool isColor(String color) {
  return color == CURRENT_COLOR ||
      color == TRANSPARENT ||
      color == INHERIT ||
      color.startsWith('#') ||
      color.startsWith(RGB) ||
      color.startsWith(HSL) ||
      _namedColors.containsKey(color);
}