myCallbackFunction method

void myCallbackFunction(
  1. bool showConsent,
  2. bool isRefresh
)

Implementation

void myCallbackFunction(bool showConsent, bool isRefresh) {
  setState(() {
    widget.callbackData.showConsent = showConsent;
    widget.callbackData.isRefresh = isRefresh;
    if (widget.callbackData.isRefresh) {
      refresh();
    }
  });
}