hextoNum static method

String hextoNum(
  1. String input
)

Converts a hex type String to an NUM type String.

Implementation

static String hextoNum(String input) {
  var hexCode = input;
  final buffer = StringBuffer();
  buffer.write(hexCode);
  return ((int.parse(buffer.toString(), radix: 16) * -1 + 16777216) * -1)
      .toString();
}