onNotificationDisplayedMethod static method

Future<void> onNotificationDisplayedMethod(
  1. ReceivedNotification receivedNotification
)

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
}