getInterfaceMember abstract method

ExecutableElement2? getInterfaceMember(
  1. Name name
)

Returns the most specific member with the given name in this type's interface.

Returns null if there is no member with the given name in this type's interface, either because the member is not declared at all, or because of a conflict between inherited members.

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

Implementation

ExecutableElement2? getInterfaceMember(Name name);