showActionsDialogAds method

dynamic showActionsDialogAds({
  1. required String title,
  2. bool isSaveAfter = false,
  3. Function? setActionFunction,
})

Implementation

showActionsDialogAds(
    {required String title,
    bool isSaveAfter = false,
    Function? setActionFunction}) async
{
  showDialog<bool>(
          context: Get.context!,
          builder: (_) => VideoRewardDialog(color: Colors.teal, title: title))
      .then((value) async {
    if (isSaveAfter) {
      int recompense = await getRecompenseAds();
      if (recompense > 0) {
        if( setActionFunction!=null){
          setActionFunction;
        }
      }
    }
  });
}