toColor method
Implementation
Color toColor() {
final hex = replaceAll("#", "");
return Color(int.parse(hex.length == 6 ? "FF$hex" : hex, radix: 16));
}
Color toColor() {
final hex = replaceAll("#", "");
return Color(int.parse(hex.length == 6 ? "FF$hex" : hex, radix: 16));
}