Elegant-Notification
Elegant-Notification copied to clipboard
Can I dismiss the current notification before showing the new one?
In some scenarios, the user might trigger notifications multiple times within seconds, which results in showing too many notifications.
Is there a way to dismiss the current notification before showing another one, similar to how it works with the ScaffoldMessenger?
ScaffoldMessenger.of(context)..removeCurrentSnackBar()..showSnackBar(SnackBar(
content: Text('$title\n' 'copied to clipboard'), ),);