toColor property

Color toColor

Implementation

Color get toColor {
  final hexColor = replaceAll("#", "");
  if (hexColor.length == 6) {
    hexColor.replaceFirst("#", "FF");
  }
  return Color(int.parse(hexColor, radix: 16));
}