Equality
equality is a Dart package that automatically generates == and hashCode methods for your Dart classes. This simplifies equality checks and hash code calculations, reducing boilerplate code and ensuring consistency across your data models.
Features
- Automatic Generation: Generates
==andhashCodemethods for your classes. - Consistent and Reliable: Ensures consistent equality checks and hash codes.
- Reduces Boilerplate: Saves time by eliminating the need to manually write these methods.
Getting Started
To use the equality package, add it as a dependency in your pubspec.yaml:
dependencies:
equality: ^1.0.1