toColor method

Color toColor()

Implementation

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