writeFormalParameters abstract method

void writeFormalParameters(
  1. Iterable<FormalParameterElement> parameters, {
  2. @Deprecated('$_deprecationMessageMethodBeingCopied And for the group prefix, ' 'inform `groupNamePrefix`.') ExecutableElement? methodBeingCopied,
  3. List<TypeParameterElement>? typeParametersInScope,
  4. String? groupNamePrefix,
  5. bool includeDefaultValues = true,
  6. bool requiredTypes,
})

Writes the code for a list of parameters, including the surrounding parentheses and default values (unless includeDefaultValues is false).

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 typeParametersInScope is provided, then it will be used to resolve what are the valid type parameters to use.

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

Implementation

void writeFormalParameters(
  Iterable<FormalParameterElement> parameters, {
  @Deprecated(
    '$_deprecationMessageMethodBeingCopied And for the group prefix, '
    'inform `groupNamePrefix`.',
  )
  ExecutableElement? methodBeingCopied,
  List<TypeParameterElement>? typeParametersInScope,
  String? groupNamePrefix,
  bool includeDefaultValues = true,
  bool requiredTypes,
});