Element upgrade(Element element)

Upgrade the specified element to be of the Dart type this was created for.

After upgrading the element passed in is invalid and the returned value should be used instead.

Source

Element upgrade(Element element);