DEV Community

Cover image for Equatable in Flutter: A Complete Guide
Dhruv Nakum
Dhruv Nakum

Posted on

1

Equatable in Flutter: A Complete Guide

Comparing Two Objects in Manual Way

  • While developing the Flutter application, we often wanted to compare two objects and check whether they are equal or not.
  • To do that, dart provides two methods == and hashcode.
  • By overriding these methods we can compare our instances.
  • Let's take an example and compare two objects by overriding these two methods. Example: Comparing Two Car Objects Example .........

Read full article Here

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more