equals method

  1. @override
bool equals(
  1. DCFComponentNode other
)
override

Whether this node is equal to another

Implementation

@override
bool equals(DCFComponentNode other) {
  if (other is! StatelessComponent) return false;
  // Components are equal if they're the same type with the same key
  return runtimeType == other.runtimeType && key == other.key;
}