isPossibleColor method

bool isPossibleColor(
  1. String color
)

Implementation

bool isPossibleColor(String color){
  if(color.startsWith("#")) return true;
  return false;
}