ReferenceableType class abstract

Base class for SharedStore and SharedMap implementations.

Implementers

Constructors

ReferenceableType()

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String
The ID of the referenceable instance.
no setter
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
sharedReference() → SharedReference
Returns the SharedReference of this instances, to instantiate it using a fromSharedReference constructor.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

disposeSharedObject<T extends ReferenceableType>(String id) → T?
Removes and returns a T ReferenceableType with id.
getOrCreateSharedObject<T extends ReferenceableType>(String id, {required T ifAbsent(String id)}) → T
Returns a T ReferenceableType with id, or creates with ifAbsent function.
getSharedObject<T extends ReferenceableType>(String id, {T? ifAbsent(String id)?}) → T?
Returns a T ReferenceableType with id, or creates in case ifAbsent is provided.
newUUID() → String
Creates an UUID (Universally Unique Identifier). See SharedStore.fromUUID and SharedMap.fromUUID.