toUtf8 function

String toUtf8(
  1. String hexString
)

Should be called to get utf8 from it's hex representation

Implementation

String toUtf8(String hexString) {
  var bufferValue = hex.decode(
      padToEven(stripHexPrefix(hexString).replaceAll(RegExp('^0+|0+\$'), '')));

  return utf8.decode(bufferValue);
}