Refactor memory event handling: replace MemoryBookableSpaceService with a new implementation and integrate caching logic in CalendarEventsBloc

This commit is contained in:
mohammad
2025-07-17 12:38:58 +03:00
parent c9b8fbb0c2
commit fe2f4a872b
5 changed files with 79 additions and 70 deletions

View File

@ -26,3 +26,9 @@ class LoadEventsParam extends Equatable {
);
}
}
extension KeyGenerator on LoadEventsParam {
String generateKey() {
return '$id-${startDate.year}-${startDate.month.toString().padLeft(2, '0')}';
}
}