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

Instance handler for a SharedObjectField.

Constructors

SharedFieldInstanceHandler({required SharedFieldInstantiator<R, O, F> fieldInstantiator, required SharedObjectInstantiator<R, O> sharedObjectInstantiator, (Type, Object?)? group})
factory

Properties

fieldInstantiator SharedFieldInstantiator<R, O, F>
final
group → (Type, Object?)?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sharedObjectInstantiator SharedObjectInstantiator<R, O>
final

Methods

from({F? field, R? reference, O? sharedObject, String? id}) → F
fromID(String id, {R? reference}) → F
Creates a SharedObjectField with id.
fromSharedObject(O o) → F
getInstanceByID(String id) → F?
Returns a cached SharedObjectField instance by id.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
tryFrom({F? field, R? reference, O? sharedObject, String? id}) → F?

Operators

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