crdtHandler<H extends Handler> method

H crdtHandler<H extends Handler>(
  1. String id
)

Resolves the handler registered under id on the nearest view, for imperative use (actions like insert/delete/change) — it does not rebuild the caller.

Under a CrdtHistoryScope the view is the frozen document, so a write through the returned handler throws a ReadOnlyDocumentException.

Throws a HandlerDeletedException if the handler was deleted, and a FlutterError if no handler is registered for id or it is not an H.

Implementation

H crdtHandler<H extends Handler<dynamic>>(String id) =>
    resolveCrdtHandler<H>(crdtView, id);