DEV Community

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

Posted on

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

Discussion (0)