rrousselGit / functional_widget

A code generator to write widgets as function without loosing the benefits of classes.
597 stars 46 forks source link

For discussion: Lists and hashCode/operator== #47

Closed derolf closed 5 years ago

derolf commented 5 years ago

In Dart, Lists 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/==?

rrousselGit commented 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.

rrousselGit commented 5 years ago

There are a few packages that offer classes wich implements List with a custom hashCode/==, like https://github.com/passsy/kt.dart