Flutter SDK
Document Connection
Learn how to set up a document connection for your MeshAgent.
Description
DocumentConnectionScope
is a builder widget that manages the lifecycle of a document connection in a MeshAgent application.
- Parameters:
path
(string): Path to the document.room
(RoomClient): Instance ofRoomClient
to manage the connection.builder
(function): A callback function that takes the current context, the loadedMeshDocument
, and any error that occurred during loading.
- Returns:
Widget
: A widget that builds based on the state of the document connection.
Example
Was this page helpful?