complete method
Implementation
void complete(OSNotification? notification) {
print(
'OSNotificationReceivedEvent complete with notification: $notification');
if (notification != null) {
OneSignal.shared.completeNotification(notification.notificationId, true);
} else {
OneSignal.shared
.completeNotification(this.notification.notificationId, false);
}
}