Closed Mike278 closed 9 months ago
Making an exception for num could lead to unexpected behavior for users who rely on strict type equality. Can you override the equality check in your own classes to suit your needs?
Agreed with @wednesdei closing for now as this is working as expected.
I understand why comparing
runtimeType
s is useful in general, but I wonder if there should be a special case fornum
- especially considering Dart's support for assigning integer literals to doubles.