SharedObjectField<R extends SharedReference, O extends ReferenceableType, F extends SharedObjectField<R, O, F>> class abstract

Base class for SharedObjectField implementation.

Inheritance
Implementers

Constructors

SharedObjectField.fromID(String sharedObjectID, {R? sharedObjectReference, SharedFieldInstanceHandler<R, O, F>? instanceHandler, SharedFieldInstantiator<R, O, F>? fieldInstantiator, SharedObjectInstantiator<R, O>? sharedObjectInstantiator, (Type, Object?)? instanceHandlerGroup})

Properties

hashCode → int
The hash code for this object.
no setterinherited
instanceHandler → SharedFieldInstanceHandler<R, O, F>
The SharedFieldInstanceHandler for this SharedObjectField type (F).
no setter
isAuxiliaryInstance → bool
Returns true if this is an auxiliary instance, usually a copy passed to another Isolate or running in a remote client.
no setteroverride
isMainInstance → bool
Returns true if this instance is the main/original instance. Also means that it is NOT an auxiliary instance. See isAuxiliaryInstance.
no setterinherited
isResolvingReference → bool
Returns true if it's asynchronously resolving the internal reference to the SharedObject. See sharedObjectAsync.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
runtimeTypeName → String
no setter
sharedObject → O
The SharedObject (O) of this instance. This SharedObject will be automatically shared among Isolate copies.
no setter
sharedObjectAsync → FutureOr<O>
Asynchronous version of sharedObject. See isResolvingReference.
no setter
sharedObjectID → String
The global ID of the sharedObject.
final
sharedReference → R
The SharedReference (R) of the SharedObject.
no setter

Methods

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

Operators

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