elementOf abstract method

Element? elementOf(
  1. DartType type
)

Gets the element represented by a type.

This resolves a type reference to its corresponding element, such as a class, mixin, or enum declaration.

@param type The type to get the element for @return The element represented by the type, or null if none exists

Implementation

Element? elementOf(DartType type);