ChildSlot class abstract

A slot of a SlottedChildView that renders child into part of the view's DOM nodes.

The child hydrates the nodes already in that part, and any nodes it doesn't reuse are removed.

Inheritance

Constructors

ChildSlot({Key? key})
Initializes key for subclasses.
const
ChildSlot.between({required Node start, required Node end, required Component child, Key? key})
Creates a slot that renders child between the start and end nodes, such as two comment markers.
factory
ChildSlot.fromQuery(String query, {required Component child, Key? key})
Creates a slot that renders child as the content of the first element matching the CSS selector query.
factory

Properties

child → Component
The component this slot renders.
no setter
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one component replaces another component in the tree.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

canUpdate(ChildSlot oldComponent) → bool
Whether this slot renders into the same DOM nodes as oldComponent.
override
createElement() → Element
Inflates this configuration to a concrete instance.
override
createRenderObject(SlottedDomRenderObject parent) → ChildSlotRenderObject
Creates the render object that renders child into part of parent's nodes.
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