creator_core library

Classes

AsyncData<T>
AsyncData is either in waiting state, or in active state with data.
Change<T>
Change wraps current state and previous state.
Creator<T>
Creator creates a stream of T. It is able to return a valid state when firstly being watched.
CreatorBase<T>
Base class of creators. Creators describe the graph dependencies. Also see ElementBase. Note that T should be immutable data.
CreatorElement<T>
Creator's element.
CreatorObserver
Observer can listen to creator state changes.
DefaultCreatorObserver
Default observer which just log the new states.
ElementBase<T>
Base class of elements. Element holds the actual state. Creator and element always exist as a pair in the graph.
Emitter<T>
Emitter creates a stream of Future
EmitterElement<T>
Emitter's element.
Ref
Ref holds the creator graph data, including states and dependencies.

Extensions

CreatorChange on Creator<T>
CreatorExtension on Creator<T>
Higher level primitives similar to these methods in Iterable / Stream. These methods are simple, but hopefully can make code concise and fluid.
EmitterAsyncData on Emitter<T>
EmitterChange on Emitter<T>
EmitterExtension on Emitter<T>
Higher level primitives similar to these methods in Iterable / Stream. These methods are simple, but hopefully can make code concise and fluid.

Functions

argsName(List<Object?>? args) String?
Format args into a string.