UniqueEntity class final

An Entity identified by a 128-bit RFC 4122 v4 uuid. Equality always consults the UUID, so id collisions with other entities (32-bit hash space) are harmless. Sendable across isolates: the UUID survives a SendPort round trip and the receiving instance compares equal to the original.

Inheritance
Implemented types

Constructors

UniqueEntity()
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
id → int
The value associated with this Entity instance.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uuid → String
final

Methods

isDefault() → bool
inherited
isNotDefault() → bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preferOverDefault(Entity other) → Entity
Returns other if this is DefaultEntity, otherwise returns this.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override