isPotentiallyMutatedInClosure method

bool isPotentiallyMutatedInClosure (
  1. VariableElement variable
)

If variable is a local variable or parameter declared anywhere within the top level function or method containing this FunctionBody, return a boolean indicating whether variable is potentially mutated within a local function other than the function in which it is declared.

If variable is not a local variable or parameter declared within the top level function or method containing this FunctionBody, return false.

Throws an exception if resolution has not yet been performed.

Implementation

bool isPotentiallyMutatedInClosure(VariableElement variable);