equals method
Whether this node is equal to another
Implementation
@override
bool equals(DCFComponentNode other) {
if (other is! DCFElement) return false;
if (type != other.type) return false;
if (key != other.key) return false;
return true;
}