isA method
Implementation
@override
bool isA(HTType? other) {
  if (other == null) return true;
  if (other.isTop) return true;
  if (other.isBottom && isBottom) return true;
  if (id == other.id) return true;
  return false;
}@override
bool isA(HTType? other) {
  if (other == null) return true;
  if (other.isTop) return true;
  if (other.isBottom && isBottom) return true;
  if (id == other.id) return true;
  return false;
}