complete method

void complete(
  1. OSNotification? notification
)

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);
  }
}