Equatable constructor

const Equatable()

A base class to facilitate operator == and hashCode overrides.

class Person extends Equatable {
  const Person(this.name);

  final String name;

  @override
  List<Object> get props => [name];
}

Equatable can also be used as a mixin

class Person with Equatable {...}

Implementation

const Equatable();