onScreenInitEvent method
Implementation
Future<void> onScreenInitEvent(ScreenInitEvent event, Emitter emit) async {
try {
final serverUrl = getServerUrl();
final body = json.safeEncode(EditorMessage("screenInit", {
"id": event.screenId,
"state": event.state,
}));
await http.post(Uri.parse(serverUrl), body: body);
} catch (e, stack) {
_log.severe("Error sending ScreenInit to Editor: $e", e, stack);
}
}