nyHexColor function
Hex Color
Implementation
Color nyHexColor(String hexColor) {
hexColor = hexColor.toUpperCase().replaceAll("#", "");
if (hexColor.length == 6) {
hexColor = "FF$hexColor";
}
return Color(int.parse(hexColor, radix: 16));
}