arrayToHex function
Convert binary data to hex */
Implementation
String arrayToHex(Uint8List data) {
var result = '';
for (var x in data) {
var str = ('00' + x.toRadixString(16));
result += str.substring(str.length - 2, str.length);
}
return result.toUpperCase();
}