isColor static method

bool isColor(
  1. String color
)

Implementation

static bool isColor(String color) {
  return color == CURRENT_COLOR || parseColor(color) != null;
}