koukibadr / Cherry-Toast

https://pub.dev/packages/cherry_toast
MIT License
21 stars 14 forks source link

Feature Request: Add callback when toast is dismiss #64

Closed yenderlobo10 closed 4 months ago

yenderlobo10 commented 6 months ago

Hi, great job with plugin.

I wold like to propose, if possible, to add a callback when toast is closed.

Ex:

CherryToast.info(
  title: Text(""),
  // NEW property
  onDismiss: (){
     // TODO: when toast is dismiss
  },

).show(context);

Thanks, Greetings!