upgrade method Null safety

Element upgrade (
  1. 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.

Implementation

Element upgrade(Element element);