style<Owner extends Object, S extends Spec<S>> static method

MixProtocolFieldCodec<Owner, Prop<StyleSpec<S>>> style<Owner extends Object, S extends Spec<S>>({
  1. required String wire,
  2. required MixProtocolBranchContext context,
  3. required Prop<StyleSpec<S>>? read(
    1. Owner value
    ),
  4. String? fieldName,
  5. 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,
  );
}