SharedObjectField<R extends SharedReference, O extends ReferenceableType, F extends SharedObjectField<R, O, F>>.fromID constructor

SharedObjectField<R extends SharedReference, O extends ReferenceableType, F extends SharedObjectField<R, O, F>>.fromID(
  1. String sharedObjectID, {
  2. R? sharedObjectReference,
  3. SharedFieldInstanceHandler<R, O, F>? instanceHandler,
  4. SharedFieldInstantiator<R, O, F>? fieldInstantiator,
  5. SharedObjectInstantiator<R, O>? sharedObjectInstantiator,
  6. (Type, Object?)? instanceHandlerGroup,
})

Implementation

SharedObjectField.fromID(
  this.sharedObjectID, {
  R? sharedObjectReference,
  SharedFieldInstanceHandler<R, O, F>? instanceHandler,
  SharedFieldInstantiator<R, O, F>? fieldInstantiator,
  SharedObjectInstantiator<R, O>? sharedObjectInstantiator,
  (Type, Object?)? instanceHandlerGroup,
})  : _instanceHandlerGroup = instanceHandlerGroup ?? instanceHandler?.group,
      _fieldInstantiator = fieldInstantiator ??
          instanceHandler?.fieldInstantiator ??
          (throw ArgumentError.notNull('fieldInstantiator')),
      _sharedObjectInstantiator = sharedObjectInstantiator ??
          instanceHandler?.sharedObjectInstantiator ??
          (throw ArgumentError.notNull('sharedObjectInstantiator')) {
  _setupInstanceFromConstructor(sharedObjectReference);
}