solidart library

Support for doing something awesome.

More dartdocs go here.

Classes

Computed<T>
A special Signal that notifies only whenever the selected values change.
DebounceOperation
The operation that must be performed is the callback It will be perfomed when the timer completes and only if the timer has not been cancelled before
Debouncer
A static class for handling method call debouncing.
Effect
Signals are trackable values, but they are only one half of the equation. To complement those are observers that can be updated by those trackable values. An effect is one such observer; it runs a side effect that depends on signals.
ListSignal<E>
ListSignal makes easier interacting with lists in a reactive context.
MapSignal<K, V>
MapSignal makes easier interacting with maps in a reactive context.
ReactiveSystem
ReadableSignal<T>
A read-only Signal.
ReadSignal<T>
A read-only Signal.
Resource<T>
Resources are special Signals designed specifically to handle Async loading. Their purpose is wrap async values in a way that makes them easy to interact with handling the common states of a future data, error and loading.
ResourceError<T>
Creates an ResourceState in error state.
ResourceLoading<T>
Creates an ResourceState in loading state.
ResourceReady<T>
Creates an ResourceState in ready state with a data.
ResourceState<T>
Manages all the different states of a Resource:
SetSignal<E>
SetSignal makes easier interacting with sets in a reactive context.
Signal<T>
Signals
SignalBase<T>
The base of a signal.
SolidartConfig
The global configuration of the reactive system.
SolidartObserver
An object that listens to the changes of the reactive system.

Enums

DevToolsEventType
The type of the event emitted to the devtools

Extensions

DevToolsExt on SignalBase<T>
Extension for the devtools
FutureOrThenExtension on FutureOr<T>
Extension to add a then method to FutureOr. This is used internally to handle both Future and synchronous values uniformly.
MayDisposeDependencies on ReactiveNode
ObserveSignal on SignalBase<T>
A callback that is fired when the signal value changes
ResourceExtensions on ResourceState<T>
Some useful extension available on any ResourceState.
ToggleBoolSignal on Signal<bool>
Adds the toggle method to boolean signals

Properties

reactiveSystem ReactiveSystem
final

Functions

batch<T>(T fn()) → T
Execute a callback that will not side-effect until its top-most batch is completed.
untracked<T>(T callback()) → T
Execute a callback that will not be tracked by the reactive system.

Typedefs

DisposeEffect = void Function()
Dispose function
DisposeObservation = void Function()
A callback that stops an observation when called

Exceptions / Errors

SolidartCaughtException
This captures the stack trace when user-land code throws an exception
SolidartException
An Exception class to capture Solidart specific exceptions
SolidartReactionException
This exception would be fired when an reaction has a cycle and does not stabilize in ReactiveConfig.maxIterations iterations