isFlexWidget property

bool get isFlexWidget

Whether this is the Nocterm class Flex, or a subtype.

Implementation

bool get isFlexWidget {
  final self = this;
  if (self is! ClassElement) {
    return false;
  }
  if (!self.isComponent) {
    return false;
  }
  if (_isExactly(_nameFlex, _uriBasic)) {
    return true;
  }
  return self.allSupertypes.any(
    (type) => type.element._isExactly(_nameFlex, _uriBasic),
  );
}