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) {
final encodedLength = AbiType.getLengthEncoded(encoded);
final encodedArray = AbiType.getContentEncoded(encoded);
final size = BigIntEncoder.decodeBytesToUint(encodedLength).toInt();
return AbiType.castToTupleType(size, elemType).decode(encodedArray);
}