Answers for "pass color json api"

0

pass color json api

hexStringToColor(String hexColor) {
  hexColor = hexColor.toUpperCase().replaceAll("#", "");
  if (hexColor.length == 6) {
    hexColor = "FF" + hexColor;
  }
  return Color(int.parse(hexColor, radix: 16));
}
Posted by: Guest on May-11-2021

Browse Popular Code Answers by Language