SingleChildSeed class abstract interface

Marker interface for a Seed that can slot into a Nest as a link — the single-child analogue of package:nested's SingleChildWidget.

A SingleChildSeed wraps a single downstream child. Used standalone it wraps its own child; placed in a Nest the enclosing chain supplies the downstream (the next link, or the leaf for the last) and the seed's own child may be null.

Its branch is required to carry SingleChildBranchMixin — that is how the injected downstream reaches the build. Implement by subclassing SingleChildStatelessSeed / SingleChildStatefulSeed, or as Nest does.

Implemented types
Implementers

Properties

child Seed?
The downstream subtree this seed wraps when used standalone. Null means "supplied by an enclosing Nest".
no setter
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

Methods

createBranch() SingleChildBranchMixin
A single-child seed's branch must mix in SingleChildBranchMixin so an enclosing Nest can inject its downstream.
override
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