Function for get whole hex.
String toWholeHex(String hexString) { var hex = strip0xHex(hexString); var wholeHex = hex.length % 2 == 0 ? hex : '0$hex'; return complete0xHex(wholeHex); }