element2 property

  1. @experimental
Element2? get element2

The element of name2 considering importPrefix.

This could be a ClassElement, TypeAliasElement, or other type defining element.

Returns null if name2 can't be resolved, or there's no element for the type name, such as for void.

Implementation

@experimental
Element2? get element2;