decode method
Decode ABI encoded byte array to dart values from ABI type schemes @param encoded byte array of ABI encoding @throws IllegalArgumentException if encoded byte array cannot match with ABI encoding rules
Implementation
@override
Object decode(Uint8List encoded) {
if (encoded.length != bitSize / 8) {
throw ArgumentError(
'cannot decode for abi uint value, byte length not matching');
}
return BigIntEncoder.decodeBytesToUint(encoded);
}