isToSetMethod property

bool get isToSetMethod

Return true if this element represents the method toSet from Iterable.

Implementation

bool get isToSetMethod {
  if (name != 'toSet') {
    return false;
  }
  final definingClass = enclosingElement;
  if (definingClass is! ClassElement) {
    return false;
  }
  return definingClass.isDartCoreIterable;
}