showActionsDialogAds2 method
dynamic
showActionsDialogAds2({})
Implementation
showActionsDialogAds2(
{required String title,
bool isSaveAfter = false,
SetActionFunction? 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) {
switch (setActionFunction) {
case SetActionFunction.saveChantUser:
//await Get.find<ChantUserController>().saveChant(isSaveOnline: true);
break;
case SetActionFunction.saveGroupeUser:
//await Get.find<GroupeUserController>().saveGroupe(isSaveOnline: true);
break;
case SetActionFunction.sendUserShare:
//await Get.find<ShareWithMeController>().sendUserShare();
break;
case SetActionFunction.backUpOnlineChantUser:
//await Get.find<ChantUserController>().backUpOnlineChantUser();
break;
default:
}
}
}
});
}