value<Owner extends Object, Value extends Object> static method

MixProtocolFieldCodec<Owner, Prop<Value>> value<Owner extends Object, Value extends Object>({
  1. required String wire,
  2. required MixProtocolValueCodec<Value> codec,
  3. required Prop<Value>? read(
    1. Owner value
    ),
  4. String? fieldName,
  5. String? inventoryName,
})

Creates a property field whose sources are direct runtime values.

Implementation

static MixProtocolFieldCodec<Owner, Prop<Value>>
value<Owner extends Object, Value extends Object>({
  required String wire,
  required MixProtocolValueCodec<Value> codec,
  required Prop<Value>? Function(Owner value) read,
  String? fieldName,
  String? inventoryName,
}) {
  return MixProtocolFieldCodec._(
    propValueField<Owner, Value>(
      wire,
      codec._schema,
      read,
      fieldName: fieldName,
      inventoryName: inventoryName,
      schemaSemantics: codec._fieldSemantics,
    ),
  );
}