getInitialNotificationAction abstract method

Future<ReceivedAction?> getInitialNotificationAction({
  1. bool removeFromActionEvents = false,
})

Gets the notification action that launched the app. If the app wasn't launched by a notification, so it returns null. This method does not depend on setListeners being called first. removeFromActionEvents when set to true, prevents the same action from being delivered in the method onActionMethod, in case it hasn't already happened

Implementation

Future<ReceivedAction?> getInitialNotificationAction(
    {bool removeFromActionEvents = false});