widgetJavascriptChannels property

Set<JavascriptChannel> get widgetJavascriptChannels

Implementation

Set<JavascriptChannel> get widgetJavascriptChannels => {
      JavascriptChannel(
          name: "updateHeight",
          onReceived: (jsonObject) {
            num height = jsonObject['height'];
            updateHeight(height.toDouble());
          }),
      JavascriptChannel(
          name: "widgetStatus",
          onReceived: (jsonObject) {
            var status = jsonObject['status'];
            if (status == 'load') {
              eventManager.triggerEvent('widgetStatus', null);
            }
          }),
      JavascriptChannel(
          name: "resolve",
          onReceived: (jsonObject) {
            eventManager.triggerEvent('resolve', jsonObject);
          }),
    };