encode method
Encode values with ABI rules based on the ABI type schemes @return byte[] of ABI encoding @throws IllegalArgumentException if encoder cannot infer the type from obj
Implementation
@override
Uint8List encode(dynamic obj) {
if (obj is! List) {
throw ArgumentError('cannot infer type for boolean abi value encode');
}
final values = List.from(obj);
return AbiType.castToTupleType(length, elemType).encode(values);
}