CrdtContextHelper extension
Convenience access to the ambient CRDTDocument.
- on
Properties
- crdtDocument → CRDTDocument
-
Available on BuildContext, provided by the CrdtContextHelper extension
TheCRDTDocumentprovided 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 underidon 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 byselectorfrom the ambientCRDTDocumentchanges (provider'scontext.select). -
watchCrdtDocument(
) → CRDTDocument -
Available on BuildContext, provided by the CrdtContextHelper extension
TheCRDTDocumentprovided by the nearest CrdtProvider.