I just stuffed a bunch of MyClass
inside a Set
in Dart. MyClass
does not implement Comparable
, and does not have an ==
operator defined. It compiled fine.
For this Set
to detect duplicates properly, do I have to implement Comparable
interface, or just override the ==
operator?