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];
}
Implementation
const Equatable();