lookUpConstructor abstract method
Return the element representing the constructor that results from looking
up the constructor with the given name
in this class with respect to the
given library
, or null
if the look up fails. The behavior of this
method is defined by the Dart Language Specification in section 12.11.1:
If e is of the form new T.id() then let q be the constructor T.id, otherwise let q be the constructor T. Otherwise, if q is not defined or not accessible, a NoSuchMethodException is thrown.
Implementation
ConstructorElement? lookUpConstructor(String? name, LibraryElement library);