EquatableMixin mixin

You must define the EquatableMixin on the class which you want to make Equatable.

EquatableMixin does the override of the == operator as well as hashCode.

Superclass Constraints

Constructors

EquatableMixin()

Properties

props List<Object>
The List of props (properties) which will be used to determine whether two Equatables are equal.
read-only
stringify bool
If the value is true, the toString method will be overrided to print the equatable props.
read-only
hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
override