color property
Color
color
Implementation
Color get color {
var hexColor = this.toUpperCase().replaceAll("#", "");
if (hexColor.length == 6) {
hexColor = "FF" + hexColor;
}
// if (hexColor.length == 8) {
// return Color(int.parse("0x$hexColor"));
// }
return Color(int.parse(hexColor, radix: 16));
}