CrdtContextHelper extension

Convenience access to the ambient CRDTDocument.

on

Properties

crdtDocument → CRDTDocument

Available on BuildContext, provided by the CrdtContextHelper extension

The CRDTDocument provided by the nearest CrdtProvider (one-off read).
no setter

Methods

crdtHandler<H extends Handler>(String id) → H

Available on BuildContext, provided by the CrdtContextHelper extension

Resolves the handler registered under id on the nearest view, for imperative use (actions like insert/delete/change) — it does not rebuild the caller.
selectCrdtDocument<R>(R selector(CRDTDocument document)) → R

Available on BuildContext, provided by the CrdtContextHelper extension

Rebuilds the calling widget only when the value derived by selector from the ambient CRDTDocument changes (provider's context.select).
watchCrdtDocument() → CRDTDocument

Available on BuildContext, provided by the CrdtContextHelper extension

The CRDTDocument provided by the nearest CrdtProvider.