Closed mrgnhnt96 closed 9 months ago
I think it would be a better idea to add a configuration (like we have for stringify) to include runtimeType in equality instead of "derived".
Closing this for now but happy to continue discussing this via an issue or on discord.
Status
IN DEVELOPMENT
Breaking Changes
NO
Description
When comparing derived (sub) classes to it's base class, the result it always
false
. I would expect that, if the base props matches the derived class's base props, the result would betrue
.Todos
Steps to Test or Reproduce
Outline the steps to test or reproduce the PR here.
Impact to Remaining Code Base
This PR will affect:
Possible Concerns
By manipulating the
==
to match derivatives from the base class, thehashCode
will not return the same result as the==
operator. This only occurs whenderived
is overridden, otherwise the results ARE the same.HashCode Docs