Closed derolf closed 5 years ago
No, probably not. It's up to the list owner to implement such a feature – especially considering it can be costly depending on the list size.
There are a few packages that offer classes wich implements List
with a custom hashCode/==, like https://github.com/passsy/kt.dart
In Dart,
List
s don't do deep hashCode or operator==, i.e.['a'].hashCode != ['a'].hashCode
and['a'] != ['a']
.Should
functional_widget
detect Lists and provide deep hashCode/==?