Equality enum

different equality (and hash code) implementations for generated data classes.

Inheritance

Constructors

Equality()
const

Values

data → const Equality

equality is implemented with Equatable package. it behaves like kotlin data classes.

identity → const Equality

only identical instances are equal. it's like when you don't implement any specific equality.

note: if you use this please be aware of const constructors.

distinct → const Equality

all of the instances are not equal. even an instance is not equal with itself.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<Equality>
A constant List of the values in this enum, in order of their declaration.