getInheritedMember abstract method

ExecutableElement2? getInheritedMember(
  1. Name name
)

Returns the most specific member with the given name that this type inherits from a supertype via an extends, with, implements, or on clause.

Returns null if no member is inherited because the member is not declared at all, or because there is no the most specific signature.

This method is semantically equivalent to calling inheritedMembers and then using the [] operator, but it potentially has better performance, since it does not need to consider all possible inherited names.

Implementation

ExecutableElement2? getInheritedMember(Name name);