···239239 weekdays: List<bool>.from(notificationItem['weekdays']),
240240 );
241241242242- // Only set date to nextDate if the notification has already fired. The date needs to be the closest future notification date. When notifications are scheduled for the first time, their date should therefore not be updated.
243242 if (notificationItem['date'] < DateTime.now().millisecondsSinceEpoch) {
243243+ // Only set date to nextDate if the notification has already fired. The date needs to be the closest future notification date. When notifications are scheduled for the first time, their date should therefore not be updated.
244244 date = nextDate;
245245 notificationItem['date'] = nextDate.millisecondsSinceEpoch;
246246+247247+ notificationItem['firedCount']++;
246248 }
247249248250 String oneDigitFiredCount = (notificationItem['firedCount'] % 10).toString();