SharedMapField<K, V> class

A SharedStore field/wrapper. This will handle the SharedStore in.

Inheritance

Constructors

SharedMapField(String id, {SharedStore? sharedStore, SharedStoreReference? sharedStoreReference, String? sharedStoreID, SharedMapEventCallback? onInitialize, SharedMapKeyCallback<K, V>? onAbsent, SharedMapEntryCallback<K, V>? onPut, SharedMapEntryCallback<K, V>? onRemove})
factory
SharedMapField.from({SharedMapField<K, V>? sharedMapField, SharedMapReference? sharedMapReference, SharedMap<K, V>? sharedMap, String? sharedMapID, SharedStore? sharedStore, SharedStoreReference? sharedStoreReference, String? sharedStoreID, SharedMapEventCallback? onInitialize, SharedMapKeyCallback<K, V>? onAbsent, SharedMapEntryCallback<K, V>? onPut, SharedMapEntryCallback<K, V>? onRemove})
factory
SharedMapField.fromSharedMap(SharedMap<K, V> o)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
instanceHandler SharedFieldInstanceHandler<SharedMapReference, SharedMap<K, V>, SharedMapField<K, V>>
The SharedFieldInstanceHandler for this SharedObjectField type (F).
no setterinherited
isAuxiliaryInstance bool
Returns true if this is an auxiliary instance, usually a copy passed to another Isolate or running in a remote client.
no setterinherited
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 setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
runtimeTypeName String
no setteroverride
sharedMap SharedMap<K, V>
no setter
sharedMapAsync FutureOr<SharedMap<K, V>>
no setter
sharedMapID String
no setter
sharedObject SharedMap<K, V>
The SharedObject (O) of this instance. This SharedObject will be automatically shared among Isolate copies.
no setterinherited
sharedObjectAsync FutureOr<SharedMap<K, V>>
Asynchronous version of sharedObject. See isResolvingReference.
no setterinherited
sharedObjectID String
The global ID of the sharedObject.
finalinherited
sharedReference SharedMapReference
The SharedReference (R) of the SharedObject.
no setterinherited
sharedStore SharedStore
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sharedMapCached({Duration? timeout}) FutureOr<SharedMap<K, V>>
Returns a cached version of sharedMap. See SharedMap.cached.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

tryFrom<K, V>({SharedMapField<K, V>? sharedMapField, SharedMapReference? sharedMapReference, SharedMap<K, V>? sharedMap, String? sharedMapID, SharedStore? sharedStore, SharedStoreReference? sharedStoreReference, String? sharedStoreID, SharedMapEventCallback? onInitialize, SharedMapKeyCallback<K, V>? onAbsent, SharedMapEntryCallback<K, V>? onPut, SharedMapEntryCallback<K, V>? onRemove}) SharedMapField<K, V>?