cleanPopUp method

dynamic cleanPopUp(
  1. dynamic onTap,
  2. dynamic title
)

Implementation

cleanPopUp(onTap,title){
  showDialog(
    context: context,
    builder: (BuildContext context) {
      return AlertDialog(
        title:  Text(AppStorages.languageKey!["alert"]!),
        content: Text(title),
        actions: <Widget>[
          MaterialButton(
            child:  Text(AppStorages.languageKey!["NO"]!),
            onPressed: () {
              //Put your code here which you want to execute on No button click.
              Navigator.of(context).pop();
            },
          ),
          MaterialButton(
            onPressed: onTap,
            child:  Text(AppStorages.languageKey!["YES"]!),
          ),



        ],
      );
    },
  );

}