void setLocal(String variableName, value)

Sets value of local variable called variableName in this View.

Source

void setLocal(String variableName, dynamic value);