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> -
ListSignalmakes easier interacting with lists in a reactive context. -
MapSignal<
K, V> -
MapSignalmakes easier interacting with maps in a reactive context. - ReactiveSystem
-
ReadableSignal<
T> - A read-only Signal.
-
ReadSignal<
T> - A read-only Signal.
-
Resource<
T> -
Resourcesare specialSignals 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> -
SetSignalmakes 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
thenmethod toFutureOr. This is used internally to handle bothFutureand 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
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.maxIterationsiterations