widgetUpdate method

void widgetUpdate(
  1. Payload? payload,
  2. bool? refresh
)

Implementation

void widgetUpdate(Payload? payload, bool? refresh) {
  if(payload == null) return;
  _controller.runJavaScript(
      "BootpayWidget.update(${payload.toString()}, ${refresh == true ? 'true' : 'false'});"
  );
}