InheritedCoralProvider<T> class base

A component that reactively binds a CoralProvider pipeline to an InheritedCoralProviderWidget.

InheritedCoralProvider extends SimplexBuildComponent to continuously monitor changes in providerCoral and dynamically update the underlying InheritedCoralProviderWidget in Flutter's widget tree.

Design Philosophy: Bridges reactive state providers with Flutter's element tree using Coralline's component lifecycle. When providerCoral emits a new CoralProvider, this component rebuilds the InheritedCoralProviderWidget so that descendant computations reactively receive the updated provider.

AI & Developer Note:

Example:

final Coral<CoralProvider<UserStore>> providerCoral = ...;
final widget = InheritedCoralProvider(
  providerCoral: providerCoral,
  child: const HomeScreen(),
).toWidget();
Inheritance
Available extensions

Constructors

InheritedCoralProvider({required Coral<CoralProvider<T>> providerCoral, required Widget child})

Properties

child Widget
final
coral Coral<Widget>
Exposes the underlying topological node that powers this computation.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isActivated bool
Indicates whether the underlying topological node is currently active in the graph.
no setterinherited
isDeactivated bool
Indicates whether the underlying topological node is currently deactivated.
no setterinherited
isPaused bool
Indicates whether the underlying topological node is currently in a paused state.
no setterinherited
isRunning bool
Indicates whether the underlying topological node is running and processing events.
no setterinherited
providerCoral Coral<CoralProvider<T>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build() Widget
Builds the declarative UI Widget subtree based on the single reactive state.
override
compute() Widget
Performs the actual computation and returns the new value for this node based on the single upstream dependency.
inherited
iterateInbound() Iterable<CoralNode>
Iterates over all direct upstream inbound nodes connected to this computation.
inherited
manifest() CoralNode
Declares the single upstream reactive dependency CoralNode that powers this component.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toWidget({Key? key, Widget errorBuilder(BuildContext context, Object error, StackTrace? stackTrace)?}) CoralWidget

Available on T, provided by the CoralComputationWidgetExtension extension

Converts this Computation into a strongly-typed CoralWidget.
toWidget({Key? key, Widget errorBuilder(BuildContext context, Object error, StackTrace? stackTrace)?}) CoralWidget

Available on CoralProvider<Widget>, provided by the CoralWidgetProviderExtension extension

Converts this CoralProvider into a CoralWidget.

Operators

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