style<Owner extends Object, S extends Spec<S> > static method
MixProtocolFieldCodec<Owner, Prop<StyleSpec<S> > >
style<Owner extends Object, S extends Spec<S> >({
- required String wire,
- required MixProtocolBranchContext context,
- required Prop<
StyleSpec< ? read(S> >- Owner value
- String? fieldName,
- String? inventoryName,
Creates a recursively encoded nested style property.
Implementation
static MixProtocolFieldCodec<Owner, Prop<StyleSpec<S>>>
style<Owner extends Object, S extends Spec<S>>({
required String wire,
required MixProtocolBranchContext context,
required Prop<StyleSpec<S>>? Function(Owner value) read,
String? fieldName,
String? inventoryName,
}) {
return mix<Owner, Style<S>, StyleSpec<S>>(
wire: wire,
codec: MixProtocolCodecs.style<S>(context),
read: read,
fieldName: fieldName,
inventoryName: inventoryName,
);
}