lookUpInheritedSetter method Null safety

  1. @Deprecated('Use lookupSetter2 instead')
PropertyAccessorElement? lookUpInheritedSetter(
  1. String name,
  2. {LibraryElement? library,
  3. bool thisType = true}
)
@Deprecated('Use lookupSetter2 instead')

Look up the member with the given name in this type and all extended and mixed in classes, and by default including thisType. If the search fails, this will then search interfaces.

Return the element representing the member that was found, or null if there is no getter with the given name.

The library determines if a private member name is visible, and does not need to be supplied for public names.

Implementation

@Deprecated('Use lookupSetter2 instead')
PropertyAccessorElement? lookUpInheritedSetter(String name,
    {LibraryElement? library, bool thisType = true});