toIntFromHex method

int? toIntFromHex()

Implementation

int? toIntFromHex() {
  if (this != null) {
    final hexValue = this!.replaceFirst('0x', '');
    return int.parse(hexValue, radix: 16);
  }
  return null;
}