loon library

Classes

BroadcastManager
The broadcast manager handles all logic related to the active broadcast observers. Its functions include:
ClearAllOperation
ClearOperation
Collection<T>
DependencyManager
Document<T>
DocumentChangeSnapshot<T>
DocumentSnapshot<T>
A snapshot of a document's data and dependencies at any given moment.
DocumentStreamBuilder<T>
DocumentStreamBuilderState<T>
FilePersistor
A worker abstraction that creates a background worker isolate to process file persistence/hydration.
HydrateAllOperation
HydrateOperation
InitOperation
Logger
Loon
ObservableDocument<T>
ObservableQuery<T>
PathRefStore
The path ref store is a tree structure that maintains a ref count of the number of times a path has been added to the tree.
PersistManager
PersistOperation
Persistor
Abstract persistor that implements the base persistence batching, de-duping and locking of persistence operations. Exposes the public persistence APIs for persistence implementations to implement. See FilePersistor as an example implementation.
PersistorBatchOperation<S, T>
PersistorOperation<T>
PersistorSettings<T>
Query<T>
Queryable<T>
QueryStreamBuilder<T>
QueryStreamBuilderState<T>
RefValueStore<T>
An extension of the ValueStore that additionally keeps a ref count of each distinct value indexed under a path.
StoreReference
ValueStore<T>
A value store is a tree structure that takes a path and indexes its value into the tree as a key of its parent path, enabling efficient access to all values of the parent path.

Mixins

BroadcastObserver<T, S>
A mixin that provides an observable interface for the access and streaming of data broadcasted from the store.

Extensions

LoonIterableExtensions on Iterable<T>

Constants

uuid → const Uuid

Typedefs

DependenciesBuilder<T> = Set<Document>? Function(DocumentSnapshot<T> snap)
Returns a set of documents that the document associated with the given DocumentSnapshot is dependent on.
FilterFn<T> = bool Function(DocumentSnapshot<T> snap)
FromJson<T> = T Function(Json json)
HydrationData = Map<String, Json>
The data returned on hydration from the hydration layer as a map of document paths to document data.
Json = Map<String, dynamic>
ModifyFn<T> = T Function(DocumentSnapshot<T>? snap)
Optional<T> = T?
SortFn<T> = int Function(DocumentSnapshot<T> a, DocumentSnapshot<T> b)
ToJson<T> = Json Function(T model)

Exceptions / Errors

DocumentTypeMismatchException<T>