NullableGraphRef<E extends Entity, C extends GraphInput, U extends GraphInput>.connection constructor

NullableGraphRef<E extends Entity, C extends GraphInput, U extends GraphInput>.connection(
  1. E entity, [
  2. String? _recordType,
  3. String? refLabel
])

Implementation

NullableGraphRef.connection(E entity, [String? _recordType, this.refLabel])
    : _linkedId = entity.id,
      _recordType = (_recordType ??
          ((entity is BaseSunnyEntity)
              ? capitalize((entity as BaseSunnyEntity).mtype.artifactId!)
              : null)),
      _update = null,
      isDisconnect = false,
      _create = null;