You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution
Compare between 2 collections(List, Map, Set, v.v…) have to use Equality object(ListEquality, MapEquality, SetEquality, v.v…) in package:collection/collection.dart.
Don’t use “==” operator.
Describe the bug
If the class has the collection variable is not the "List" object. Comparing is always return true.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
assert(e1 != e2) //return true
Problem
https://github.com/felangel/equatable/blob/master/lib/src/equatable_utils.dart#L18-L24
Solution
Compare between 2 collections(List, Map, Set, v.v…) have to use Equality object(ListEquality, MapEquality, SetEquality, v.v…) in package:collection/collection.dart.
Don’t use “==” operator.
The text was updated successfully, but these errors were encountered: