onControllerReady property
void Function(T controller)?
onControllerReady
final
Called when the Instant controller is ready.
NutrientInstantView(
serverUrl: url,
jwt: jwt,
onControllerReady: (controller) async {
await controller.setListenToServerChanges(true);
await controller.syncAnnotations();
},
)
Not called on Web, where Instant sync is configured at load time.
Implementation
final void Function(T controller)? onControllerReady;