rxflare library

Classes

CancelToken
Disposable
====================== Disposable Contract ====================== Base interface for objects that require manual cleanup.
EventToken
Token used to unregister listeners.
Rx
The core reactive widget of RxFlare.
RxArgs
Global page argument storage.
RxBuilder
A convenience widget that wraps Rx for simple builder patterns.
RxComputed<T>
A reactive computed value that automatically tracks dependencies.
RxContext
====================== RxContext ======================
RxDebug
RxDebug 日志工具
RxDI
Global dependency injection container.
RxEventBus
Global event bus.
RxFuture<T>
======================================================= RxFuture
RxHit
Result of a successful route match.
RxKey
====================== RxKey ======================
RxList<T>
A reactive list that extends RxState and provides fine-grained reactivity on both list-level and index-level access.
RxMap<K, V>
A reactive implementation of Map that extends RxState.
RxMatcher
Route matching utility.
RxMaterialApp
A convenient wrapper around MaterialApp.router for the RxFlare routing system.
RxPage
Represents a page instance in the navigation stack.
RxProvider<T>
Widget-scoped dependency provider.
RxResult
Handles route result delivery.
RxRoute
Route definition.
RxRouteConfig
Simple route configuration class (kept for compatibility).
RxRouteParser
RxRouter
RxRouter is the core manager of the RxFlare routing system.
RxRouterDelegate
RouterDelegate implementation that connects RxRouter state to Flutter's Navigator.
RxSet<T>
A reactive implementation of Set backed by RxState.
RxStack
RxStack is the internal dependency tracking stack used by RxFlare.
RxState<T>
RxState is the core unit of reactive state.
RxUtils
Utility class for generating unique page identifiers.

Enums

EventPriority
Event priority.

Mixins

RxAutoDispose<T extends StatefulWidget>
====================== RxAutoDispose Mixin ====================== A mixin that helps automatically dispose RxFlare resources (listeners, futures, tokens, etc.) when a State object is disposed.

Extensions

AutoDisposeEventToken on EventToken
Allows EventToken to be automatically cleaned up.
AutoDisposeListener on VoidCallback
Allows listener cancel callbacks to be automatically disposed.
AutoDisposeRxFuture on RxFuture<T>
====================== Auto Dispose Chain Extensions ====================== Provides convenient .autoDispose() chain methods for common RxFlare objects.
RxAnyExtension on T
============================== Universal .obs Extension
RxComputedExtensions on RxComputed<T>
Shorthand extension for accessing the current value of an RxComputed.
RxFutureDisposable on RxFuture<T>
====================== RxFuture Disposable Extension ====================== Extension to make RxFuture support automatic disposal.
RxListExtension on List<T>
Converts a List<T> into an RxList<T>.
RxListMapExtension on List<Map<String, dynamic>>
Specialized extension for list of JSON objects.
RxListToState on RxState<List<T>>
============================== List Enhancements for RxState
RxMapDynamicExtension on Map<String, dynamic>
============================== JSON-friendly Extensions
RxMapExtension on Map<K, V>
============================== Strongly Typed Collection Extensions
RxSetExtension on Set<T>
Converts a Set<T> into an RxSet<T>.

Properties

rxr RxRouter
Global router instance for convenient access.
final

Functions

computed<T>(T fn()) RxComputed<T>
Creates a computed reactive value.
rxBool(bool fn()) RxComputed<bool>
Creates a computed boolean value.
rxDouble(double fn()) RxComputed<double>
Creates a computed double value.
rxInt(int fn()) RxComputed<int>
Creates a computed integer value.
rxString(String fn()) RxComputed<String>
Creates a computed string value.

Typedefs

EventCallback<T> = Future<void> Function(int eventID, String uuid, T data)
Callback signature for event listeners.
RxNotifier<T> = RxState<T>
RxStore<T> = RxState<T>
RxValue<T> = RxState<T>
Type aliases for RxState.
RxWidgetBuilder = Widget Function()
Signature for the builder function used by Rx.