SeatProvider<T extends SeatPreference> class final

Provides ONE SeatPreference over a subtree under its EXACT static type T - the provider seed a plain seat type vends from provider().

A SingleChildStatelessSeed rather than a bare InheritedSeed because InheritedSeed requires its child at construction and so cannot be a link in a Nest; this wrapper is the one line that bridges that, and it is what lets a consumer nest a collection of seats it does not enumerate.

T is written by the seat type itself (SeatProvider<SpecAgentEnvironment> from SpecAgentEnvironment.provider), which is why the mounted value keeps the exact type resolveEnvironment reads by.

Constructors

SeatProvider(T value, {Seed? child, Key? key})
Provides value over child as an InheritedSeed<T>.
const

Properties

child → Seed?
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Identity Key used by keyed reconciliation (Branch.updateChildren). Null means positional (unkeyed) identity.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → T
The seat preference this seed provides.
final

Methods

build(TreeContext context) → Seed
Standalone build: wraps this seed's own child. Inside a Nest the branch injects the chain's downstream instead (see SingleChildStatelessBranch).
inherited
buildWithChild(TreeContext context, Seed child) → Seed
Describes the subtree for this configuration, embedding child (the downstream link or leaf). context is the branch's capability handle, never the branch itself.
createBranch() → SingleChildStatelessBranch
Creates the mounted Branch for this configuration.
inherited
debugFillProperties(DiagnosticsBuilder properties) → void
Adds this object's diagnostic properties to properties.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
toStringDeep() → String
Returns a deterministic multiline description of this object.
inherited

Operators

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