Does dart support operator overloading
The chosen answer is no longer valid when you try overloads using the == operator in the new version. Now you need to do this: class MyClass { @override bool operator ==(other) { // compare this to other } } But it’s not safe. other is not specified as a type, Something unexpected may happened. … Read more