clearAllConversation method
Implementation
void clearAllConversation(BuildContext context) {
Helper.showAlert(
message: AppConstants.areYouClearAllChat,
actions: [
TextButton(
onPressed: () {
// Get.back();
Navigator.pop(context);
},
child: Text(
AppConstants.no.toUpperCase(),
style: TextStyle(color: MirrorflyUikit.getTheme?.primaryColor),
)),
TextButton(
onPressed: () {
// Get.back();
Navigator.pop(context);
clearAllConv();
},
child: Text(
AppConstants.yes.toUpperCase(),
style: TextStyle(color: MirrorflyUikit.getTheme?.primaryColor),
)),
],
context: context);
}