correspondingParameter property

  1. @experimental
FormalParameterElement? get correspondingParameter

The parameter element representing the parameter to which the value of this expression is bound.

Returns null if any of these conditions are false:

  • this expression is an argument to an invocation
  • the AST structure has been resolved
  • the function being invoked is known based on static type information
  • this expression corresponds to one of the parameters of the function being invoked

Implementation

@experimental
FormalParameterElement? get correspondingParameter;