MixProtocolStylerCodec<Owner extends Object> class final

Declarative codec for one contributed styler object.

Constructors

MixProtocolStylerCodec({required List<MixProtocolFieldCodec<Owner, Object>> fields, MixProtocolStylerMetadataBase<Owner>? metadata, String? inventoryOwner, Set<String>? ownerFieldInventory, int actualFieldCount(Owner value)?, required Owner build(JsonMap data)})
Creates a styler codec from its fields and reconstruction callback.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

forStyler<Styler extends Style<S>, S extends Spec<S>>({required MixProtocolBranchContext context, required List<MixProtocolFieldCodec<Styler, Object>> fields, Set<String>? ownerFieldInventory, required Styler build(JsonMap data, MixProtocolStylerMetadata<Styler, S> metadata)}) → MixProtocolStylerCodec<Styler>
Creates a codec for a Mix Style, wiring its standard metadata and generated field inventory automatically.