renotify method

  1. @override
Future<void> renotify(
  1. String uuid, {
  2. bool silent = false,
})
override

Implementation

@override
Future<void> renotify(String uuid, {bool silent = false}) async {
  printDebug("Renotify: $uuid", tag: tag);
  final n = _notificationManager.getNotification(uuid);
  if (n == null) {
    printDebug("Notification not found: $uuid", tag: tag);
    return;
  }
  final jsNotification = n.notification;
  final jsOptions = jsNotification.options?.copyWith(silent: silent, requireInteraction: false);
  final update = n.copyWith(notification: jsNotification.copyWith(options: jsOptions));
  return _notificationManager.add(update);
}