writeParameters abstract method

void writeParameters(
  1. Iterable<ParameterElement> parameters, {
  2. ExecutableElement? methodBeingCopied,
  3. bool requiredTypes,
})

Write the code for a list of parameters, including the surrounding parentheses.

If a methodBeingCopied is provided, then type parameters defined by that method are assumed to be part of what is being written and hence valid types.

If requiredTypes is true, then the types are always written.

Implementation

void writeParameters(Iterable<ParameterElement> parameters,
    {ExecutableElement? methodBeingCopied, bool requiredTypes});