onWidgetChangeAgreeTermJS method

Future<void> onWidgetChangeAgreeTermJS(
  1. JavaScriptMessage message
)

Implementation

Future<void> onWidgetChangeAgreeTermJS(JavaScriptMessage message) async {
  // print("onWidgetChangeTermsJS : ${message.message}");
  try {
    Map<String, dynamic> data = jsonDecode(message.message);
    WidgetData widgetData = WidgetData.fromJson(data);
    if (this.widget.onWidgetChangeAgreeTerm != null) this.widget.onWidgetChangeAgreeTerm!(widgetData);
  } catch (e) {
    print("Error parsing JSON: $e");
  }
}