insertNotificationEvent static method
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()});
}