isEventIdAddedBefore method
Implementation
bool isEventIdAddedBefore(DateTime timeUpdate, String yourDatabaseId ){
Map<String, String> mapKey = Map();
var s = mapKey["s"] ;
//get list event same date
List<CleanCalendarEvent>? listEventSameDate = events[ timeUpdate];
if( listEventSameDate == null ) return false;
//case new event added to date have event
bool isFound = false;
listEventSameDate.forEach((elementEvent) {
//check found
if( elementEvent.summary == yourDatabaseId ) {
isFound = true;
}
});
return isFound;
}