value<Owner extends Object, Value extends Object> static method
MixProtocolFieldCodec<Owner, Prop<Value> >
value<Owner extends Object, Value extends Object>({
- required String wire,
- required MixProtocolValueCodec<
Value> codec, - required Prop<
Value> ? read(- Owner value
- String? fieldName,
- 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,
),
);
}