encodeName method
Encodes the name of the function and its required parameters.
The encoding is specified here: https://solidity.readthedocs.io/en/develop/abi-spec.html#function-selector although this method will not apply the hash and just return the name followed by the types of the parameters, like this: bar(bytes,string[])
Implementation
String encodeName() {
final parameterTypes = _encodeParameters(parameters);
return '$name($parameterTypes)';
}