onNotificationDisplayedMethod static method
Use this method to detect every time that a new notification is displayed
Implementation
@pragma("vm:entry-point")
static Future<void> onNotificationDisplayedMethod(
ReceivedNotification receivedNotification) async {
// Your code goes here
if (kDebugMode) {
print("onNotificationDisplayedMethod");
}
}