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.
- Inheritance
-
- Object
- Component
- ProxyComponent
- ObserverComponent
Constructors
-
ObserverComponent.new({Component? child, List<
Component> ? children, Key? key}) -
Abstract const constructor. This constructor enables subclasses to provide
const constructors so that they can be used in const expressions.
const
Properties
- child → Component?
-
finalinherited
-
children
→ List<
Component> ? -
finalinherited
- 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