pl_flow library

Classes

FlowBuilder<T>
A simple and lightweight widget builder for MutableFlow.
FlowObserver
FlowObserver is a class that observes the flows and disposes them when they are no longer needed. It is used to avoid memory leaks and to ensure that the flows are disposed when they are no longer needed. Example:
MultiFlowBuidler
MutableFlow<T>
PulseStreamBuilder<T extends Object>
A modern stream builder widget with type-safe state management.
SharedFlow<T>
StateFlow<T>
StreamData<T extends Object>
Stream has emitted data.
StreamError<T extends Object>
Stream has emitted an error.
StreamInitial<T extends Object>
Initial state with no data yet.
StreamState<T extends Object>
Represents the state of a stream subscription.
TaskQueueRunner<T>

Typedefs

CreateFlow<T> = MutableFlow<T> Function(BuildContext context)
Factory function to create a new flow instance.
MultiFlowBuilderWidget = Widget Function(BuildContext context, List<Tuple3<Type, int, dynamic>?> data)
A builder that builds a widget based on the state of a MultiFlow. data the data of the MultiFlow.
MultiFlowData = List<Tuple3<Type, int, dynamic>?>

Exceptions / Errors

TaskQueueException
Task Queue Exception is the base exception for task queue
TaskQueueRemovedException
TaskQueueTimeoutException