optireact library
Classes
-
AsyncData<
T> - Represents a successful result from an async operation.
-
AsyncError<
T> - Represents an error state when an async operation fails.
-
AsyncInitial<
T> - Represents the initial state before any async operation starts.
-
AsyncLoading<
T> - Represents a loading state when an async operation is in progress.
-
AsyncValue<
T> - A wrapper class representing the state of an asynchronous operation.
- Debouncer
-
A debouncer that delays execution until
durationhas passed since the last call. -
DebouncerWith<
T> - A debouncer for a single-argument function.
- DisposeBag
- Collects disposer callbacks and releases them all at once with dispose.
-
Failure<
T> - The failed outcome of a Result.
- InMemoryStorageAdapter
- In-memory storage adapter for testing.
-
IReactiveNotifier<
T> - Abstract base interface for all reactive notifiers in the OptiReact library.
-
Lazy<
T> - Defers expensive initialization until the value is first accessed.
-
Reactive<
T> - A widget that rebuilds when a ValueListenable changes.
-
ReactiveAsync<
T> - A widget that builds UI based on ReactiveAsyncNotifier state.
-
ReactiveAsyncNotifier<
T> - A reactive notifier for handling asynchronous operations with state management.
-
ReactiveComputedNotifier<
T> - A derived reactive notifier that automatically computes its value from dependencies.
-
ReactiveDebouncedNotifier<
T> - A reactive notifier that debounces value updates.
-
ReactiveHost<
T extends ReactiveScope> - A widget that creates and auto-disposes a ReactiveScope.
-
ReactiveList<
E> - A reactive list that automatically notifies listeners on mutations.
-
ReactiveMap<
K, V> - A reactive map that automatically notifies listeners on mutations.
- ReactiveMulti
- A widget that rebuilds when any of multiple Listenables change.
-
ReactiveNotifier<
T> - A lightweight, high-performance reactive state container.
- ReactiveObserver
- A global observer for monitoring ReactiveNotifier lifecycle and state changes.
-
ReactivePersistedNotifier<
T> - A reactive notifier that automatically persists its state.
- ReactiveRetryStrategy
- A strategy for controlling retry behavior in async operations.
- ReactiveScope
- Base class for organizing multiple notifiers with auto-disposal.
-
ReactiveSelect<
T, S> -
A widget that rebuilds only when a selected property of type
Schanges. -
ReactiveSet<
E> - A reactive set that automatically notifies listeners on mutations.
-
ReactiveThrottledNotifier<
T> - A reactive notifier that throttles value updates.
-
Result<
T> - A sealed class representing the result of a synchronous operation.
- StorageAdapter
- Interface for storage adapters used by ReactivePersistedNotifier.
-
StreamReactiveNotifier<
T> - A reactive notifier that is backed by a stream.
-
Success<
T> - The successful outcome of a Result.
- Throttler
-
A throttler that executes immediately on the first call, then blocks
subsequent calls for
duration. -
ThrottlerWith<
T> - A throttler for a single-argument function.
-
UndoableNotifier<
T> - A reactive notifier with undo/redo history support.
Extensions
- DisposedByExtension on void Function()
-
Convenience extension — registers this disposer callback into
bag. -
FilteredExtensions
on ReactiveNotifier<
T> - Extension methods for filtering and transforming ReactiveNotifier values.
-
StreamExtensions
on ReactiveNotifier<
T> - Extension methods for converting ReactiveNotifier to/from Streams.
Functions
-
debounce(
void fn(), Duration duration) → Debouncer - Convenience factory — creates a Debouncer for a no-arg function.
-
debounceWith<
T> (void fn(T), Duration duration) → DebouncerWith< T> - Convenience factory — creates a DebouncerWith for a single-arg function.
-
throttle(
void fn(), Duration duration) → Throttler - Convenience factory — creates a Throttler for a no-arg function.
-
throttleWith<
T> (void fn(T), Duration duration) → ThrottlerWith< T> - Convenience factory — creates a ThrottlerWith for a single-arg function.