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