ObserverComponent class abstract
Base class for components that observes the build execution of it's descendants in the Component tree.
See also:
- StatefulComponent and State, for components that can build differently several times over their lifetime.
- StatelessComponent, for components that always build the same way given a particular configuration and ambient state.
- InheritedComponent, for components that introduce ambient state that can be read by descendant components.
- Component, for an overview of components in general.
Constructors
- ObserverComponent({required Component child, Key? key})
-
Abstract constant constructor with the child
which will be below this in the tree.
const
Properties
- child → Component
-
The component below this component in the tree.
final
- 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
-
createElement(
) → ObserverElement -
Inflates this configuration to a concrete instance.
override
-
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