insertNotificationEvent static method

Future<void> insertNotificationEvent(
  1. NotificationEvent notificationEvent
)

Inserts notification event to the activity history.

Inserted notification event will be visible in the activity history. NotificationEvent should be filled properly.

Implementation

static Future<void> insertNotificationEvent(
    NotificationEvent notificationEvent) async {
  NotificationEvent filteredEvent =
      _notificationsTracker.filterNotificationEvent(notificationEvent);
  await _channel.invokeMethod('insertNotificationEvent',
      {'notificationEvent': filteredEvent.toMap()});
}