isSoloMember function

bool isSoloMember(
  1. Element? element,
  2. String type,
  3. String name
)

Whether element is the member name of the class or enum type declared in solo.

Implementation

bool isSoloMember(Element? element, String type, String name) {
  if (element == null || element.name != name) return false;
  final owner = element.enclosingElement;
  return owner is InterfaceElement && _named(owner, type, _solo);
}