composePropertyValue static method

DC composePropertyValue(
  1. PropertyValue propertyValue,
  2. DistributedConnection connection
)
Compose a property value. Property value DistributedConnection is required to check locality.

Implementation

static DC composePropertyValue(PropertyValue propertyValue,
    DistributedConnection connection) //, bool includeAge = true)
{
  return (BinaryList()
        ..addUint64(propertyValue.age)
        ..addDateTime(propertyValue.date)
        ..addDC(compose(propertyValue.value, connection)))
      .toDC();
}