hex2int static method

int hex2int(
  1. dynamic hex
)

Converts a hex string to an integer.

Implementation

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