hexDecode function
hexDecode returns the bytes represented by the hexadecimal string s.
hexDecode expects that src contains only hexadecimal characters and that src has even length. If the input is malformed, DecodeString returns the bytes decoded before the error.
Implementation
Uint8List hexDecode(String s) {
return Uint8List.fromList(hex.decode(s));
}