hex2color static method

Color hex2color(
  1. dynamic hex
)

Converts a hex string to a Flutter Color object.

Implementation

static Color hex2color(hex) {
  final List<int> rgb = hex2rgb(hex);
  return rgb2color(rgb[0], rgb[1], rgb[2]);
}