MixProtocolField class abstract final

Builders for declarative contributed-styler fields.

A declaration keeps three names separate: wire is the stable serialized key, inventoryName is the Dart owner field consumed by the declaration, and fieldName is an optional diagnostic label. Keeping these namespaces explicit allows Dart fields to evolve without silently changing the wire contract.

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

direct<Owner extends Object, Value extends Object>({required String wire, required MixProtocolValueCodec<Value> codec, required Value? read(Owner value), String? inventoryName}) → MixProtocolFieldCodec<Owner, Value>
Creates a field read directly from its owner.
mix<Owner extends Object, Value extends Object, PropValue extends Object>({required String wire, required MixProtocolValueCodec<Value> codec, required Prop<PropValue>? read(Owner value), String? fieldName, String? inventoryName}) → MixProtocolFieldCodec<Owner, Prop<PropValue>>
Creates a property field whose sources are Mix values.
style<Owner extends Object, S extends Spec<S>>({required String wire, required MixProtocolBranchContext context, required Prop<StyleSpec<S>>? read(Owner value), String? fieldName, String? inventoryName}) → MixProtocolFieldCodec<Owner, Prop<StyleSpec<S>>>
Creates a recursively encoded nested style property.
value<Owner extends Object, Value extends Object>({required String wire, required MixProtocolValueCodec<Value> codec, required Prop<Value>? read(Owner value), String? fieldName, String? inventoryName}) → MixProtocolFieldCodec<Owner, Prop<Value>>
Creates a property field whose sources are direct runtime values.