equals method
Whether this node is equal to another
Implementation
@override
bool equals(DCFComponentNode other) {
if (other is! StatefulComponent) return false;
// Components are considered equal if they're the same type with the same key
return runtimeType == other.runtimeType && key == other.key;
}